TImeout Question [message #490548] |
Fri, 09 October 2009 06:36 |
Bhooshan Mogal Messages: 16 Registered: July 2009 |
Junior Member |
|
|
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 10:00 |
Ketan Padegaonkar Messages: 873 Registered: July 2009 |
Senior Member |
|
|
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.
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02059 seconds