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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Suzy Ng
Sent: Thursday, August 28, 2008 5:19 AM
To: [email protected]
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>