TImeout Question [message #490548] |
Fri, 09 October 2009 02:36  |
Eclipse User |
|
|
|
Hi All,
I had a question about the timeout in SWTBot. Sometimes, when I set the timeout to a higher value because I know that a particular widget takes longer to be enabled, the entire Test Suite that I am running seems to slow down. I generally set a higher timeout value expecting swtbot to give more time for a particular widget(s) to load, but sometimes, it ends up slowing my entire test suite.
Can anybody point me to exactly why this happens? Also, if this is expected behavior, is there anyway I could set the timeout for a particular part of my test only, say when I want to wait longer for a widget that takes longer to load?
Thanks,
Bhooshan.
|
|
|
Re: TImeout Question [message #490593 is a reply to message #490548] |
Fri, 09 October 2009 06:00   |
Eclipse User |
|
|
|
This is how it's done:
original = SWTBotPreferences.TIMEOUT;
SWTBotPreferences.TIMEOUT = 100000; // milliseconds
// do a long running operation
SWTBotPreferences.TIMEOUT = original;
--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr
On 09/10/09 12:06 PM, Bhooshan Mogal wrote:
> Hi All,
>
> I had a question about the timeout in SWTBot. Sometimes, when I set the
> timeout to a higher value because I know that a particular widget takes
> longer to be enabled, the entire Test Suite that I am running seems to
> slow down. I generally set a higher timeout value expecting swtbot to
> give more time for a particular widget(s) to load, but sometimes, it
> ends up slowing my entire test suite.
> Can anybody point me to exactly why this happens? Also, if this is
> expected behavior, is there anyway I could set the timeout for a
> particular part of my test only, say when I want to wait longer for a
> widget that takes longer to load?
>
> Thanks,
> Bhooshan.
>
>
>
|
|
|
Re: TImeout Question [message #490686 is a reply to message #490593] |
Fri, 09 October 2009 13:13  |
Eclipse User |
|
|
|
Thanks a lot Ketan...
That seems pretty simple.
I ll try that..
Also, sorry for the duplicate thread.. I couldnt find my message after i posted.
|
|
|
Powered by
FUDForum. Page generated in 0.03845 seconds