Hi Marc.

Thanks for the quick response.  That has solved my problem.

Ian

On 1/5/07, Marc Guillemot <[EMAIL PROTECTED]> wrote:

Hi Ian,

I guess that it is really what your application return but if you want
the refresh to be followed, you need to configure it in the
<configuration ... autorefresh="true">
http://webtest.canoo.com/webtest/manual/config.html

Marc.

Ian Phillips wrote:
> Hi.
>
> I am trying to log into an application.  The script looks like this:
>
> <steps>
>                 <invoke
>                     description="get Login Page"
>                     url="/" />
>                 <verifyTitle
>                     description="we should see the login title"
>                     text="KPSA" />
>                 <setInputField
>                     description="set user name"
>                     name="login"
>                     value="KOPAdmin" />
>                 <setInputField
>                     description="set password"
>                     name="passwd"
>                     value="passwd" />
>                 <clickButton
>                     description="Click the submit button"
>                     label=" Login "/>
>                 <verifyTitle text="Kabira Order Processing"
> description="Kabira Order Processing follows if login ok"/>
>             </steps>
>
>
> The last step fails and this is the response file to the button click:
> html>
>  <head>
>    <meta http-equiv="Refresh" content="0;URL=./index.php">
>  </head><body></body></html>
>
>
> In the command line I get the following:
>
> Test step verifyTitle (C:\canoo\doc\samples\SimpleTest.xml:35: )  named
> "Kabira
> Order Processing follows if login ok" failed with message "Wrong
> document title
> found! Expected "Kabira Order Processing" but got """
>         at
> com.canoo.webtest.ant.WebtestTask.stopBuildIfNeeded(WebtestTask.java:
> 191)
>         at com.canoo.webtest.ant.WebtestTask.execute (WebtestTask.java
:160)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java :341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
>         at org.apache.tools.ant.Project.executeTargets(Project.java
:1068)
>         at org.apache.tools.ant.Main.runBuild (Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java :67)
>
>
> I have tried setting ANT_OPTS="-DlogLevel.root=debug" in the
> log4j.properties file but don't seem to get any more information.
>
> Is there a way to find out more about what is happening?
>
> Thanks
>
> Ian
>
>

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to