avignon.handlers
Class VerbalizeTestResultHandler

java.lang.Object
  extended byavignon.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:


Constructor Summary
VerbalizeTestResultHandler()
           
 
Method Summary
 void end(AvignonTestState state)
          No action.
 void start(AvignonTestState state, org.xml.sax.Attributes attributes)
          Enques a message with the MessagePlayer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerbalizeTestResultHandler

public VerbalizeTestResultHandler()
Method Detail

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.

SourceForge.net Logo