Hi,

  I am new to web tests and found problem with basic sample example.
Please guide me if I am doing anything wrong.

 

 In the sample example below

 

<project default="test">
 <target name="test">

  <webtest 
       name="check that WebTest is Google's top 'WebTest' result">
    <invoke url="http://www.google.com/ncr"; 
            description="Go to Google (in English)"/>
    <verifyTitle text="Google" />
    <setInputField name="q" value="WebTest" />
    <clickButton label="I'm Feeling Lucky" />
    <verifyTitle text="Canoo WebTest" />
  </webtest>

 </target>
</project>

 

The result page after clicking I'm Feeling Lucky is as below. The page
will be redirected to"/webtest/manual/WebTestHome.html" and seems
Webtest is unable to handle tests involving redirected pages.

I wonder how this basic test itself is not working as expected. Please
let me know how to get to redirected result page to continue the
testing.

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>

<HTML><HEAD><TITLE>Canoo WebTest Homepage</TITLE>

<META http-equiv="Refresh"
content="0;URL=/webtest/manual/WebTestHome.html">

 

</HEAD>

<BODY>

 

</BODY></HTML>

 

Thanks,

Prasad.

Reply via email to