|
Re: Alternate for sleep() [message #633990 is a reply to message #633961] |
Wed, 20 October 2010 04:19   |
Eclipse User |
|
|
|
Hi Nyna,
Comments below.
Nyna a écrit :
> Hi
> Can anyone suggest me an alternate for the sleep() method.. heard
> about waitUntil(). Can anyone please explain.
>
> Thanks in advance :)
When you plan to use "sleep", this is for waiting something, for
instance a button enablement, a dialog display or a background job to
end. If you use the sleep method you will specify an amount of time. The
duration will depend on your computer performance and workload. In other
words, the test may work on your computer at this time but will fail in
othercase.
The "waituntil" method allows you to use a condition rather than a
duration. Until the condition is checked, the test will wait.
In other words, the test will work on any computer at any time.
Hope this help,
Regards,
Mariot
--
Mariot Chauvin @ Obeo
http://www.obeo.fr
http://mariot-thoughts.blogspot.com
http://fr.linkedin.com/in/mariotchauvin
|
|
|
|
|
|
|
|
Re: Alternate for sleep() [message #635790 is a reply to message #634513] |
Thu, 28 October 2010 03:03  |
Eclipse User |
|
|
|
Hi Mariot,
I tried to implement the waitUntil() as you mentioned above.Please can you check the message - [ Issue in waiting for tree expansion [message #635771]].
I am facing some issues with this approach. Your help would be appreciated.
Thanks,
Ullas
|
|
|
Powered by
FUDForum. Page generated in 0.04899 seconds