Antoine Omnès
Antoine Omnès

Reputation: 153

Slow Down SWTBot execution

I would like to slow down SWTBot Execution.

I have already found this wiki: https://wiki.eclipse.org/SWTBot/FAQ#Can_I_slow_down_the_execution_speed_of_SWTBot_tests.3F

But for me it doesn't work.

My DEFAULT_POLL_DELAY in SWTBotPreferences look like that:

public static final long DEFAULT_POLL_DELAY = toLong(System.getProperty(KEY_DEFAULT_POLL_DELAY, "500"), 500);

So, SWTBotPreferences.DEFAULT_POLL_DELAY = 1000; can't work...

With System.setProperty("org.eclipse.swtbot.playback.poll.delay", "1200"); it doesn't work for me.

Thank you,

Antoine

Upvotes: 3

Views: 253

Answers (1)

howlger
howlger

Reputation: 34175

To slow down execution use

  • System.setProperty("org.eclipse.swtbot.playback.delay", "1200");, without ....poll.... or
  • SWTBotPreferences.PLAYBACK_DELAY = 1000; instead of SWTBotPreferences.DEFAULT_POLL_DELAY = 1000;

Upvotes: 2

Related Questions