Handle step failure, interact with device through console when STEP FAILS in cucumber test.
-
- use INTERACTIVE method to find out the state of app. e.q. list, find (element), click, screenshot, info, source
-
- use REACTION method. Close interaction, return one command to proceed the case run. e.q. redo, resume, end, skipAll
-
- make IDEA support console input: Help->Edit Custom VM Options->append a new line: "-Deditable.java.test.console=true", restart IDEA
-
- Support hot reload in IDEA: Preference->search hotswap->select "reload classes after compilation" always or ask
-
- Start the existing example, with org.chef.example.Runner. When a step is failed, type 'help' then enter. Then try commands listed in instruction.
- Keep "TestStep, TestCase" locally, DO NOT merge those customized cucumber java file, it altered cucumber code which may affect CI.