[Webtest] is it possible to set http timeouts?

Lothar Märkle webtest@lists.canoo.com
Thu, 30 Jun 2005 11:08:21 +0200


On Thu, Jun 30, 2005 at 10:29:08AM +0530, Nimesh Muley wrote:
> We had similar requirements for one of the project implementations in my organization. After going through the code of webtest, we found that the duration reported for each step is the time difference between setting the request in HTMLUnit and getting the response back from HTMLUnit (plus some operations done by webtest code itself). Also note that the JavaScript engine is also implemented in Java (Rhino). Due to these variations it may so happen that your request is served faster via browser rather than via Webtest. If your page has lot of JavaScript which is fired during loading of the page it takes much more time for the response.
Thanks for this information.

> In fact I had read on somewhere on webtest NOT to depend on the duration much. It may be used for comparison for different runs of the same script on the application to find out if there has been any degradation over a period of time.

> 
> Hence we believe that duration should not be used for failing the tests.

> 
> I can see from the results page that Canoo does know the duration of
> each invocation and I would like to be able to access this value in
> the canoo xml script - is that currently possible?

Paul added recently a TimeGroupStep, that fails if the steps last too
long.

I would also like to have a 'default' time limit per step via config e.g.
but only the http fetch time without parsing etc. should be considered.

lothar

> 
> ie, is it possible to either:
> 
> 1) get Canoo to set some property with the duration of the invoke
> target?  (similar to setting the errorproperty or failureproperty
> values)
> 
> or 
> 
> 2) set an http timeout for each invoke tag and have Canoo honor it for
> the http calls, I assume setting the fail or error properties if the
> timeout occurs.  (Although having a separate "timeout" property for
> this scenario would be great.)
> 
> 
> My goal is to be able to set up a Canoo script that could tell if an
> http request took "too long" in addition to telling if it outright
> failed/errored.  I realize that I could put the TStamp target before
> and after each invoke, and write my own task that could evaluate the
> two TStamp property values, but it would be better if I could get the
> info directly from Canoo since it already has it.
> 
> (I'm new to this list, so I hope this question isn't a repeat.  I
> searched the archives and did not see an answer to it.)
> 
> 
> Thanks for any info about this,
> 
> Laurie
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 
> 
> MASTEK
> "Making a valuable difference"
> Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
> In the US, we're called MAJESCO
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest

-- 
Lothar Märkle - lothar.maerkle@netpioneer.de
Netpioneer GmbH - Beiertheimer Allee 18a - D-76137 Karlsruhe
Tel: 0721 / 9 20 60 43
Fax: 0721 / 9 20 60 30