renatoathaydes / Automaton

Simple framework which allows the testing of Swing and JavaFX2 applications.
Apache License 2.0
100 stars 21 forks source link

allow step by step execution ie wait until space or escape #7

Closed PaulWinstone closed 10 years ago

PaulWinstone commented 10 years ago

Before executing the next wait swinger call wait for a SPACE or cancel with ESC

renatoathaydes commented 10 years ago

I implemented this as a prototype, but found that unfortunately, it almost always breaks the script under execution.... the problem is that any user interaction during an execution will necessarily have an effect on it.

For example, if the Automaton script clicks on a drop-box, then Automaton blocks to wait for the user to hit "space" before proceeding, for example, it does not seem to be possible to keep focus on the drop-box after the user hits "space", which would be necessary if the next action would be to select one of the options in it.

Will investigate if it's possible to get around this problem.

renatoathaydes commented 10 years ago

@PaulWinstone I found a way to make this work. See the README's "custom configuration" section to see how to enable interactive mode.

In Interactive mode, each Automaton action will wait for you to press any key before continuing. Look at the console output to see what action will be performed next.

Let me know if it worked for you.