Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » TImeout Question
TImeout Question [message #490548] Fri, 09 October 2009 06:36 Go to next message
Bhooshan Mogal is currently offline Bhooshan MogalFriend
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 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
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.
>
>
>
Re: TImeout Question [message #490686 is a reply to message #490593] Fri, 09 October 2009 17:13 Go to previous message
Bhooshan Mogal is currently offline Bhooshan MogalFriend
Messages: 16
Registered: July 2009
Junior Member
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: Mon Nov 24 16:28:32 GMT 2014

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

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