Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Poll delay
Poll delay [message #33844] Mon, 27 April 2009 14:44 Go to next message
Eclipse UserFriend
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 00:19 Go to previous message
Eclipse UserFriend
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: Thu May 01 13:15:22 EDT 2025

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

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

Back to the top