avignon.handlers
Class VerbalizeTestResultHandler
java.lang.Object
avignon.handlers.VerbalizeTestResultHandler
- All Implemented Interfaces:
- AvignonTagHandler
- public class VerbalizeTestResultHandler
- extends java.lang.Object
- implements AvignonTagHandler
This class will play a success or failure sound file based on the status of the running
acceptance test. This handler does not expect to contain any sub-handlers.
Typically this handler would be placed in the tear down script to run at the end
of each test.
Handler Parameters:
- failure - Directory for failure sounds
- success - Directory for success sounds
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerbalizeTestResultHandler
public VerbalizeTestResultHandler()
end
public void end(AvignonTestState state)
- No action.
- Specified by:
end in interface AvignonTagHandler
- Parameters:
state - The AvignonTestState being used for the current stack of tests.
start
public void start(AvignonTestState state,
org.xml.sax.Attributes attributes)
- Enques a message with the MessagePlayer. If any failures are detected for the current test, a random message with be picked
from the WAV files in the directory identified by the "failure" attribute. If no failures are detected, a message will be
picked from the directory identified by the "success" attribute.
- Specified by:
start in interface AvignonTagHandler
- Parameters:
state - The state in which to search for failures.attributes - Must have a success and a failure attribute. Each specifies the path to a directory containing WAV files for each type of
result.