Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Poll delay
Poll delay [message #33844] Mon, 27 April 2009 18:44 Go to next message
Paul Yeung is currently offline Paul YeungFriend
Messages: 3
Registered: July 2009
Junior Member
Hi there,

I'm using the following code:

bot.waitUntil(bot.shellCloses("xx"));

The problem I have with my application is that the shell "xx" only appears
for less than a second. This makes the SWTBot difficult to detect the
existence of the shell because I know the default polling delay value is
500 milliseconds. Is it possible to reduce that value ? It seems in 2.0,
the parameter for specifying the polling delay value is gone.
Re: Poll delay [message #34037 is a reply to message #33844] Tue, 28 April 2009 04:19 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
The poll delay is kept at 500 ms to allow for breathing room. If the
poll delay is any lower SWTBot will be taking up too many cycles on the
UI thread for it to be able to do much.

File a bug report and I'll take a look at parametrization of the poll delay.

As a workaround you can do a bot.waitUntil(shellIsActive("other shell"))
if you know what shell becomes active after your shell closes.

-- Ketan

On 28/4/09 00:14, Paul Yeung wrote:
> Hi there,
>
> I'm using the following code:
>
> bot.waitUntil(bot.shellCloses("xx"));
>
> The problem I have with my application is that the shell "xx" only
> appears for less than a second. This makes the SWTBot difficult to
> detect the existence of the shell because I know the default polling
> delay value is 500 milliseconds. Is it possible to reduce that value ?
> It seems in 2.0, the parameter for specifying the polling delay value is
> gone.
>
Previous Topic:Broken update site link?
Next Topic:Can't test RCP application
Goto Forum:
  


Current Time: Mon Dec 22 10:39:15 GMT 2014

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

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