[Webtest] How to verify title on the redirected page

Suzy Ng Suzy Ng <trippy_geek@hotmail.com>
Thu, 28 Aug 2008 20:41:08 +0800


--_a18adaf5-9f61-410f-b09c-a8cc20848da4_
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit


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 

_________________________________________________________________
Manage multiple email accounts with Windows Live Mail effortlessly.
http://www.get.live.com/wl/all
--_a18adaf5-9f61-410f-b09c-a8cc20848da4_
Content-Type: text/html; charset="gb2312"
Content-Transfer-Encoding: 8bit

<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
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'm wondering if there are any other ways to do that.<br><br>Thanks!<br><br><br><br><hr>From: wsoula@pointserve.com<br>To: webtest@lists.canoo.com<br>Subject: RE: [Webtest] How to verify title on the redirected page<br>Date: Thu, 28 Aug 2008 06:57:38 -0500<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">

<style>
.ExternalClass .EC_hmmessage P
{padding-right:0px;padding-left:0px;padding-bottom:0px;padding-top:0px;}
.ExternalClass BODY.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</style>



<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span class="EC_753065211-28082008">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 class="EC_753065211-28082008"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span class="EC_753065211-28082008">&lt;retry maxCount="60"&gt;</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span class="EC_753065211-28082008">&nbsp;&nbsp;&nbsp; &lt;sleep 
seconds="3"/&gt;</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span class="EC_753065211-28082008">&nbsp;&nbsp;&nbsp; &lt;verifyTitle text="Title of 
Redirected To page"/&gt;</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span class="EC_753065211-28082008">&lt;/retry&gt;</span></font></div><br>
<div class="EC_OutlookMessageHeader" dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma"><b>From:</b> webtest-admin@lists.canoo.com 
[mailto:webtest-admin@lists.canoo.com] <b>On Behalf Of </b>Suzy 
Ng<br><b>Sent:</b> Thursday, August 28, 2008 5:19 AM<br><b>To:</b> 
webtest@lists.canoo.com<br><b>Subject:</b> [Webtest] How to verify title on the 
redirected page<br></font><br></div>
<div></div>Hi,<br>I'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 id="EC_line18">&lt;<span class="EC_start-tag">SCRIPT</span><span class="EC_attribute-name"> LANGUAGE</span>=<span class="EC_attribute-value">"JavaScript"</span>&gt;<br>&lt;!--<br>function redirectTo(){<br>	var nextURL = "www.test.com....etc";<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("redirectTo()",100);<br><br>//-&gt;<br>&lt;/<span class="EC_end-tag">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='_new'>Windows Live Photo Gallery</a></body>
</html>
--_a18adaf5-9f61-410f-b09c-a8cc20848da4_--