[Webtest] How to verify title on the redirected page

Harihara Vinayakaram Harihara Vinayakaram" <hvram1@gmail.com
Fri, 29 Aug 2008 08:29:28 +0530


------=_Part_21417_32142740.1219978768297
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi
   I have some experience with antContrib and webtest . But they generally
don't go together too well.

   There is a bug logged in JIRA which has the same problem that I faced :
unset and webtest don't work together .

Just my 0.02$ so that you don't spend too much time trying to figure out why
things are not working as they should be

Regards
Hari

On Fri, Aug 29, 2008 at 4:28 AM, Conor MacMahon <
Conor.MacMahon@qsa.qld.edu.au> wrote:

>  Hi Suzy,
>             Do you want to measure the time, in that you want to error out
> if it exceeds a certain amount of seconds? Or just measure the time in
> general, and then give this feedback? For the former, you could easily use
> the 'timedGroup' functionality in webtest (
> http://webtest.canoo.com/webtest/manual/timedGroup.html).
>             For the latter, you could use two tools via ant,
> https://antutility.dev.java.net/ and
> http://ant-contrib.sourceforge.net/tasks/tasks/performance_monitor.html.
> Both will log out how long a particular task took, which is then logged out,
> and hence you can read. I've used ant-contrib, and must admit it has quite a
> few other handy tools that one would use now and again (i.e. if/else
> statements, try-catch, etc.).
>             From your requirements (i.e. wanting to have the most accurate
> time measurement), sounds like you need to use the retry/sleep below of
> wsoula@pointserve.com below, and set the sleep seconds to 1 second or
> lower order, to increase accuracy. And if that run doesn't give you feedback
> in the ant log, use
> http://ant-contrib.sourceforge.net/tasks/tasks/performance_monitor.html to
> ensure you do get that feedback.
> HTH,
> Conor
>
>  ------------------------------
> *From:* webtest-admin@lists.canoo.com [mailto:
> webtest-admin@lists.canoo.com] *On Behalf Of *Suzy Ng
> *Sent:* Thursday, 28 August 2008 10:41 PM
>
> *To:* webtest@lists.canoo.com
> *Subject:* RE: [Webtest] How to verify title on the redirected page
>
> Hi,
> i have thought of doing that, but i also need to measure the time taken for
> the redirected page to load.
> So if i use this method the measurement might not be accurate.
> So i'm wondering if there are any other ways to do that.
>
> Thanks!
>
>
>
> ------------------------------
> From: wsoula@pointserve.com
> To: webtest@lists.canoo.com
> Subject: RE: [Webtest] How to verify title on the redirected page
> Date: Thu, 28 Aug 2008 06:57:38 -0500
>
> Have you tried sleeping after you login to give the the redirected to page
> time to load?  You can even retry for awhile instead of doing a hard sleep
> for a long time.
>
> <retry maxCount="60">
>     <sleep seconds="3"/>
>     <verifyTitle text="Title of Redirected To page"/>
> </retry>
>
>  ------------------------------
> *From:* webtest-admin@lists.canoo.com [mailto:
> webtest-admin@lists.canoo.com] *On Behalf Of *Suzy Ng
> *Sent:* Thursday, August 28, 2008 5:19 AM
> *To:* webtest@lists.canoo.com
> *Subject:* [Webtest] How to verify title on the redirected page
>
> Hi,
> I'm a new to webtest. I have a test which i need to verify the title on the
> redirected page i.e.
> I have a login page which i click to login, it will go to e.g. page A and
> then redirect to page B.
> It takes ard 1min plus for the page to be redirected to page B. I want to
> verify the title on page B.
> But when i run my webtest, it verifies the title on page A.
> I have set auto refresh true... not sure what else i should be doing.
> The redirect code is as follow:
>
> <SCRIPT LANGUAGE="JavaScript">
> <!--
> function redirectTo(){
> 	var nextURL = "www.test.com....etc";
> 	location = nextURL;
> }
>
> //put a delay so that WA.GIF image will be logged in apache logs or else the page will redirect too fast.
> setTimeout("redirectTo()",100);
>
> //->
> </SCRIPT>
>
>
> Please help.
>
> Thanks.
>
> ------------------------------
> Share your beautiful moments with Photo Gallery. Windows Live Photo
> Gallery <http://get.live.com/photogallery/overview>
> ------------------------------
> Share your beautiful moments with Photo Gallery. Windows Live Photo
> Gallery <http://get.live.com/photogallery/overview>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This email (including any attached files) is for the intended
> recipient(s) only. If you received this email by mistake, please,
> as a courtesy, tell the sender, then delete this email.
>
> The views and opinions are the originator's and do not necessarily
> reflect those of the Queensland Studies Authority. All reasonable
> precautions have been taken to ensure that this email contained no
> viruses at the time it was sent.
>
>

------=_Part_21417_32142740.1219978768297
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">Hi<br>&nbsp;&nbsp; I have some experience with antContrib and webtest . But they generally don&#39;t go together too well. <br><br>&nbsp;&nbsp; There is a bug logged in JIRA which has the same problem that I faced :<br>unset and webtest don&#39;t work together .<br>
<br>Just my 0.02$ so that you don&#39;t spend too much time trying to figure out why things are not working as they should be<br><br>Regards<br>Hari<br><br><div class="gmail_quote">On Fri, Aug 29, 2008 at 4:28 AM, Conor MacMahon <span dir="ltr">&lt;<a href="mailto:Conor.MacMahon@qsa.qld.edu.au">Conor.MacMahon@qsa.qld.edu.au</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div><div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">Hi Suzy,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<font face="Arial">Do you want to measure the time, in that you want to error out 
if it exceeds a certain amount of seconds? Or just measure the time in general, 
and then give this feedback?&nbsp;For the former, you could easily use the 
&#39;timedGroup&#39; functionality in webtest (<a href="http://webtest.canoo.com/webtest/manual/timedGroup.html" target="_blank">http://webtest.canoo.com/webtest/manual/timedGroup.html</a>).</font></font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<font face="Arial">For the latter, you could use two tools via ant, <a href="https://antutility.dev.java.net/" target="_blank">https://antutility.dev.java.net/</a>&nbsp;and 
<a href="http://ant-contrib.sourceforge.net/tasks/tasks/performance_monitor.html" target="_blank">http://ant-contrib.sourceforge.net/tasks/tasks/performance_monitor.html</a>. 
Both will log out how long a particular task took, which is then logged out, and 
hence you can read. I&#39;ve used ant-contrib, and must admit it has quite a few 
other handy tools that one would use now and again (i.e. if/else statements, 
try-catch, etc.).</font></font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<font face="Arial">From your requirements (i.e. wanting to have the most accurate 
time measurement), sounds like you need to use the retry/sleep below of <a href="mailto:wsoula@pointserve.com" target="_blank">wsoula@pointserve.com</a> below, and set the 
sleep seconds to 1 second or lower order, to increase accuracy. And if that run 
doesn&#39;t give you feedback in the ant log, use <a href="http://ant-contrib.sourceforge.net/tasks/tasks/performance_monitor.html" target="_blank">http://ant-contrib.sourceforge.net/tasks/tasks/performance_monitor.html</a>&nbsp;to 
ensure you do get that feedback.</font></font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">HTH,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">Conor</font></span></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma"><div class="Ih2E3d"><b>From:</b> <a href="mailto:webtest-admin@lists.canoo.com" target="_blank">webtest-admin@lists.canoo.com</a> 
[mailto:<a href="mailto:webtest-admin@lists.canoo.com" target="_blank">webtest-admin@lists.canoo.com</a>] <b>On Behalf Of </b>Suzy 
Ng<br></div><b>Sent:</b> Thursday, 28 August 2008 10:41 PM<div><div></div><div class="Wj3C7c"><br><b>To:</b> 
<a href="mailto:webtest@lists.canoo.com" target="_blank">webtest@lists.canoo.com</a><br><b>Subject:</b> RE: [Webtest] How to verify title on 
the redirected page<br></div></div></font><br></div><div><div></div><div class="Wj3C7c">
<div></div>Hi,<br>i have thought of doing that, but i also need to measure the 
time taken for the redirected page to load.<br>So if i use this method the 
measurement might not be accurate.<br>So i&#39;m wondering if there are any other 
ways to do that.<br><br>Thanks!<br><br><br><br>
<hr>
From: <a href="mailto:wsoula@pointserve.com" target="_blank">wsoula@pointserve.com</a><br>To: <a href="mailto:webtest@lists.canoo.com" target="_blank">webtest@lists.canoo.com</a><br>Subject: RE: 
[Webtest] How to verify title on the redirected page<br>Date: Thu, 28 Aug 2008 
06:57:38 -0500<br><br>



<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>Have you tried sleeping after you login to give the 
the redirected to page time to load?&nbsp; You can even retry for awhile instead 
of doing a hard sleep for a long time.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>&lt;retry maxCount=&quot;60&quot;&gt;</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>&nbsp;&nbsp;&nbsp; &lt;sleep 
seconds=&quot;3&quot;/&gt;</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>&nbsp;&nbsp;&nbsp; &lt;verifyTitle text=&quot;Title of 
Redirected To page&quot;/&gt;</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>&lt;/retry&gt;</span></font></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma"><b>From:</b> <a href="mailto:webtest-admin@lists.canoo.com" target="_blank">webtest-admin@lists.canoo.com</a> 
[mailto:<a href="mailto:webtest-admin@lists.canoo.com" target="_blank">webtest-admin@lists.canoo.com</a>] <b>On Behalf Of </b>Suzy 
Ng<br><b>Sent:</b> Thursday, August 28, 2008 5:19 AM<br><b>To:</b> 
<a href="mailto:webtest@lists.canoo.com" target="_blank">webtest@lists.canoo.com</a><br><b>Subject:</b> [Webtest] How to verify title on the 
redirected page<br></font><br></div>
<div></div>Hi,<br>I&#39;m a new to webtest. I have a test which i need to verify the 
title on the redirected page i.e.<br>I have a login page which i click to login, 
it will go to e.g. page A and then redirect to page B.<br>It takes ard 1min plus 
for the page to be redirected to page B. I want to verify the title on page 
B.<br>But when i run my webtest, it verifies the title on page A.<br>I have set 
auto refresh true... not sure what else i should be doing.<br>The redirect code 
is as follow:<br><pre>&lt;<span>SCRIPT</span><span> LANGUAGE</span>=<span>&quot;JavaScript&quot;</span>&gt;<br>&lt;!--<br>function redirectTo(){<br>	var nextURL = &quot;www.test.com....etc&quot;;<br>	location = nextURL;<br>
}<br><br>//put a delay so that WA.GIF image will be logged in apache logs or else the page will redirect too fast.<br>setTimeout(&quot;redirectTo()&quot;,100);<br><br>//-&gt;<br>&lt;/<span>SCRIPT</span>&gt;</pre><br>Please 
help.<br><br>Thanks.<br><br>
<hr>
Share your beautiful moments with Photo Gallery. <a href="http://get.live.com/photogallery/overview" target="_blank">Windows Live 
Photo Gallery</a> <br>
<hr>
Share your beautiful moments with Photo Gallery. <a href="http://get.live.com/photogallery/overview" target="_blank">Windows Live Photo 
Gallery</a> </div></div></div>
<pre>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email (including any attached files) is for the intended 
recipient(s) only. If you received this email by mistake, please, 
as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator&#39;s and do not necessarily 
reflect those of the Queensland Studies Authority. All reasonable 
precautions have been taken to ensure that this email contained no 
viruses at the time it was sent.
</pre></div>
</blockquote></div><br></div>

------=_Part_21417_32142740.1219978768297--