Sample code: wait(20)what is the minimum and maximum time the above mentioned synchronization statements will wait given that the global default timeout is set to 15 seconds.

Showing Answers 1 - 8 of 8 Answers

dipan

  • Nov 3rd, 2005
 

20 seconds

  Was this answer useful?  Yes

chaitra

  • Nov 3rd, 2005
 

minimum of 15secs and maximum of 35secs

  Was this answer useful?  Yes

Raj

  • Nov 21st, 2005
 

The maximum time is 20 seconds and the minimum time is one second

  Was this answer useful?  Yes

WinRunner waits no longer than the default timeout setting before executing the subsequent statement in a test script.

You can set this default timeout setting in a test script by using the timeout_msec testing option with the setvar function and use wait() thereafter.

As wait() is for 20 sec (its not sync) so script should wait for 20 sec but global default timeout is set to 15 sec ..so min & max wait time will be 15 sec only

  Was this answer useful?  Yes

Hi Das,

I think ur assumption might be wrong. I am not sure about it.

But for my example, WR simply waits the specified amonut of time, irrespective of timeout.

time=time_str(get_time());
printf(time);
setvar("timeout",10); #setvar("timeout_msec",10);
wait(20);
time=
time_str(get_time());
printf(time);

The Output i am getting is :

Fri Jan 06 09:47:02 2006
Fri Jan 06 09:47:22 2006

I think from this example, even i set the timeout to 10 sec.s it waits upto 20 sec.s.

Here my answer for the question is 20 sec.s for min and max time.

  Was this answer useful?  Yes

jagannadha prasad.V.S.

  • May 13th, 2006
 

Hi

Minimum time is 1 sec

max time is 35 sec (time of wait statement(20)+Global timeout(15))

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions