Destructor
Destructor

Reputation: 3294

Eclipse SWTBot randomly throws Widget Not Found Exception

I have a Simple test case to create a project, this test case works fine , but all of a sudden, at some try the WidgetNotFound exception is thrown!! Restart the test, the exception is not thrown !!

Again after some try WidgetNotFound exception is thrown! Is there any particular reason for this??
This un-expected behaviour happens more often when running test through crontab! Any suggestions on how to avoid it??

Upvotes: 2

Views: 442

Answers (1)

Destructor
Destructor

Reputation: 3294

The only way I found to get rid of these random failures was to increase the SWTBot timing parameters to:

-Dorg.eclipse.swtbot.playback.poll.delay=500
-Dorg.eclipse.swtbot.playback.delay=400

UPDATED link: https://wiki.eclipse.org/SWTBot/FAQ

Upvotes: 1

Related Questions