my ClinkLink on the download link is the very last step:
"[clickLink] INFO ( com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink "++ Klicke auf den Download Link ++" (9/10)
[clickLink] INFO (com.canoo.webtest.steps.request.AbstractTargetAction) - -> gotoTarget by clickLink
[clickLink] INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: R_1190.
[clickLink] INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class: com.canoo.webtest.engine.StepExecutionException
[clickLink] INFO (com.canoo.webtest.steps.Step) - Message was: Current response is not an HTML page but of type application/octet-stream
[clickLink] INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: R_1190.
[clickLink] INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class: com.canoo.webtest.engine.StepExecutionException
[clickLink] INFO (com.canoo.webtest.steps.Step) - Message was: Current response is not an HTML page but of type application/octet-stream
INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.
BUILD FAILED
"
if i invoke this step instead of clickLink'ing it, i get:
" [invoke] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: invoke "++ Download ++" (9/10)
[invoke] INFO (com.canoo.webtest.steps.request.AbstractTargetAction) - -> gotoTarget by URL: http://*******
[invoke] INFO (com.canoo.webtest.steps.request.TargetHelper) - getting response for url: http://********
<!-- HERE THE WEBTEST STOPS FOR ABOUT 2 MINUTES -->
[invoke] INFO (com.canoo.webtest.engine.Context) - Content of window changed to http://*****************
[invoke] INFO (com.canoo.webtest.engine.Context) - Content of current window changed, it will become current response
[invoke] INFO (com.canoo.webtest.engine.Context) - Current form set to none
[invoke] INFO (com.canoo.webtest.engine.Context) - Current response now: http://******
INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.
BUILD SUCCESSFUL
Total time: 2 minutes 2 seconds
"
so i can see that the download is reachable, but the test lasts too long. I have set the timout to 10 seconds. this means that connection is alive and invoke need 2 minutes to get response ?
Thanks
Anton
2006/3/1, Marc Guillemot <[EMAIL PROTECTED]>:
Slim Kasi <[EMAIL PROTECTED]> writes:
>
> Hallo, i am trying to test, if the download is reachable.If i invoke the
download link i get following message:"Message was: Current response is not an
HTML page but of type application/octet-stream
> BUILD FAILED"This means, the download is there. Is there anyway i can catch
the response and save it and make BUILD successful ?Thanks, Anton
Hi Anton,
I guess that you've a clickLink on the download link and then some other steps
and that the first of this steps is failing. This shows that the download has
been successfully executed. You just have to remove the step after this
clickLink.
To save the responses you can
- use the global <config> attribute saveresponse
- use the save attribute of the <clickLink> you use to download your file.
Marc.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

