Module | Cucumber::Runtime::UserInterface |
In: |
lib/cucumber/runtime/user_interface.rb
|
visitor | [W] |
Output announcement alongside the formatted output. This is an alternative to using Kernel#puts - it will display nicer, and in all outputs (in case you use several formatters)
Suspends execution and prompts question to the console (STDOUT). An operator (manual tester) can then enter a line of text and hit <ENTER>. The entered text is returned, and both question and the result is added to the output using announce.
If you want a beep to happen (to grab the manual tester‘s attention), just prepend ASCII character 7 to the question:
ask("#{7.chr}How many cukes are in the external system?")
If that doesn‘t issue a beep, you can shell out to something else that makes a sound before invoking ask.