Sure.

In WinRunner, there is a global timeout setting that is used for all
scripts.  This was set via a menu option rather that programmatically.

In addition to this, in WinRunner TSL, most operations would take a
timeout value as a parameters e.g.

    link_click(name, timeout)
    button_click(name, timeout)

Don't quote me on any of those functions names.  Anyway, let's say I
have the global timeout set to 5 seconds, and have the following
operation:

    link_click("my_link", 0)

If WinRunner can't find the link within 5 (5 + 0) seconds, it will
fail with a timeout error.  If it can find the link before the 5
seconds is up then it clicks it as soon as it can.

I have seen non-functional requirements before along the lines of "the
response time for each operations should be less than 5 seconds".  In
such circumstances the above is useful.  If the requirements then
change, the global timeout setting can be changed.

If you needed a longer timeout for a specific operation, the following
might be used:

    link_click("my_link", 20)

Then it would wait 25 (5 + 20) seconds before timing out.

To be honest, when doing our performance testing we mostly used tools
like JMeter, working at an HTTP level, however people often like to
see how a web sites respond to simulated mouse clicks rather than the
HTTP requests behind them.

Does that make sense?

Cheers,
Daniel.

On 08/06/06, Bret Pettichord <[EMAIL PROTECTED]> wrote:
> On 6/8/06, Daniel Browne <[EMAIL PROTECTED]> wrote:
>
> > What
> > was different was that there was a global timeout setting that was
> > used, and the timeout value added to the operation would be added on
> > to the global timeout value.  This was quite handy when testing
> > requirements such as a "All web pages must be loaded within 5
> > seconds".
>
>
> Can you give an example? I'm not sure i understand.
>
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to