Now it seams to work.. i took a few steps before the download test out.
But it still last more then 2 minutes :(((
is it normal ?

0. config:
<config
              host="www.somesite.com"
              protocol="HTTP"
              basepath=""
              timeout="10"
              summary="true"
              saveresponse="false"
              haltonfailure="false"
              resultpath="/home/www/*********/"
              resultfile=" WebTestResults.xml"
              autorefresh="true">
              <header value="Gecko" name="User-Agent"/>
              <option name="ThrowExceptionOnScriptError" value="false"/>
              <option name="setExceptionsThrownOnErrorStatus" value="false"/>
              <option name="ThrowExceptionOnFailingStatusCode" value="false"/>
              </config>

1. Steps code:
<invoke description="++ Startseite ++" url="">
<verifyTitle description="++ Test auf den richtigen Title ++" text="some title" />
<setInputField description="++ Benutzername setzen ++"
  name="username"
  value="******" />
<setInputField description="++ Passwort setzen ++"
  name="password"
  value="******" />
<clickButton
  name="login"
  description="++ Klicke auf Submit Button ++" />
<clickLink description="++ go to the next site ++" label="somelabel" />
<verifyTitle description="++ Test auf den richtigen Title ++" text="sometitle" />
<clickLink description="++ Klicke auf den Download Link ++" label="Download" />

2. output of the 3 last steps

[clickLink]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink "++ go to the next site ++" (6/8)
[clickLink]  INFO (com.canoo.webtest.steps.request.AbstractTargetAction) - -> gotoTarget by clickLink
[clickLink]  INFO (org.apache.commons.httpclient.HttpMethodDirector) - Redirect requested but followRedirects is disabled
[clickLink]  INFO (com.canoo.webtest.engine.Context) - Content of window changed to http://**********/
[clickLink]  INFO (com.canoo.webtest.engine.Context) - Content loaded in newly opened window, its content will become current response
[clickLink]  INFO (com.canoo.webtest.engine.Context) - Current form set to none
[clickLink]  INFO (com.canoo.webtest.engine.Context) - Current response now: http://**********/
[verifyTitle]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: verifyTitle "++ Test auf den richtigen Title ++" (7/8)
[clickLink]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink "++ Klicke auf den Download Link ++" (8/8)
[clickLink]  INFO (com.canoo.webtest.steps.request.AbstractTargetAction ) - -> gotoTarget by clickLink

<!-- sleeps here for about 2 minutes -->

[clickLink]  INFO (com.canoo.webtest.engine.Context) - Content of window changed to http://*******.com/********.zip
[clickLink]  INFO (com.canoo.webtest.engine.Context) - Content of current window changed, it will become current response
[clickLink]  INFO (com.canoo.webtest.engine.Context) - Current form set to none
[clickLink]  INFO ( com.canoo.webtest.engine.Context) - Current response now:
http://*******.com/********.zip
 INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.

BUILD SUCCESSFUL
Total time: 2 minutes 0 seconds



Thanks
Anton

Reply via email to