Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task: Automated testing #5

Closed
joulupunikki opened this issue Apr 27, 2015 · 0 comments
Closed

Task: Automated testing #5

joulupunikki opened this issue Apr 27, 2015 · 0 comments

Comments

@joulupunikki
Copy link
Owner

Collaborative task 1

Automated testing

Motivation

Performing high level tests on complex, interactive software is difficult. A test for a turn based wargame could require playing multiple turns, possibly dozens, perhaps to a victory or loss, and could include thousands of mouse and keyboard inputs. Done manually, this would require up to several hours of work by a tester.

Implementation sketch

Java has Robot class which can generate native OS events such as mouse and key presses. A component could be coded into Phoenix which when enabled would execute via a Robot a predefined sequence of mouse and keyboard events which together with a predefined random seed would constitute a game session. This alone would be a great boon.

Estimated work
  • Difficulty: easy/moderate
  • Size: small
Examples

http://alvinalexander.com/java/java-robot-class-example-mouse-keystroke

This was referenced Apr 27, 2015
@joulupunikki joulupunikki changed the title Task: Automated testing (class Robot) Task: Automated testing Apr 28, 2015
@joulupunikki joulupunikki modified the milestone: v0.11 May 5, 2015
@joulupunikki joulupunikki self-assigned this Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant