[Webtest] How to verify title on the redirected page

Suzy Ng Suzy Ng <trippy_geek@hotmail.com>
Thu, 28 Aug 2008 18:18:52 +0800


--_7568cd7b-911a-4744-a703-9de5f9e0867a_
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit


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.

_________________________________________________________________
Manage multiple email accounts with Windows Live Mail effortlessly.
http://www.get.live.com/wl/all
--_7568cd7b-911a-4744-a703-9de5f9e0867a_
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'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="line18">&lt;<span class="start-tag">SCRIPT</span><span class="attribute-name"> LANGUAGE</span>=<span class="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="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='_new'>Windows Live Photo Gallery</a></body>
</html>
--_7568cd7b-911a-4744-a703-9de5f9e0867a_--