Skip to main content



      Home
Home » Eclipse Projects » SWTBot » TImeout Question
TImeout Question [message #490548] Fri, 09 October 2009 02:36 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Browse For Folder dialog
Next Topic:Timeout Question
Goto Forum:
  


Current Time: Thu Jun 12 15:03:01 EDT 2025

Powered by FUDForum. Page generated in 0.03845 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top