1.0.0

org.eclipse.soda.dk.testmanager.servlet
Class TestReport

java.lang.Object
  extended by org.eclipse.soda.dk.testmanager.servlet.TestReport
All Implemented Interfaces:
TestRunListenerService, ScriptRunListenerService

public class TestReport
extends java.lang.Object
implements ScriptRunListenerService, TestRunListenerService

Version:
1.0.0

Nested Class Summary
static class TestReport.Event
           
 
Constructor Summary
TestReport()
          Constructs an instance of this class.
 
Method Summary
 void scriptActionEnded(java.lang.String message)
          Script action ended with the specified message parameter.
 void scriptActionError(java.lang.String message, java.lang.String detail)
          Script action error with the specified message and detail parameters.
 void scriptActionInfo(java.lang.String message)
          Script action info with the specified message parameter.
 void scriptActionStarted(java.lang.String message)
          Script action started with the specified message parameter.
 void scriptRunEnded(java.util.Map testStatistics)
          Script run ended with the specified test statistics parameter.
 void scriptRunError(java.lang.String message, java.lang.String trace)
          Script run error with the specified message and trace parameters.
 void scriptRunStarted(TestScriptService script)
          Script run started with the specified script parameter.
 void testEnded(java.lang.String runId, java.lang.String testName)
          Test ended with the specified run id and test name parameters.
 void testError(java.lang.String runId, java.lang.String testName, java.lang.String trace)
          Test error with the specified run id, test name and trace parameters.
 void testFailed(java.lang.String runId, java.lang.String testName, java.lang.String trace)
          Test failed with the specified run id, test name and trace parameters.
 void testRunEnded(java.lang.String runId)
          Test run ended with the specified run id parameter.
 void testRunError(java.lang.String runId, java.lang.String message, java.lang.String detail)
          Test run error with the specified run id, message and detail parameters.
 void testRunStarted(java.lang.String runId)
          Test run started with the specified run id parameter.
 void testStarted(java.lang.String runId, java.lang.String testName)
          Test started with the specified run id and test name parameters.
 TestReport.Event waitForNextEvent()
          Wait for next event and return the Event result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestReport

public TestReport()
Constructs an instance of this class.

Method Detail

scriptActionEnded

public void scriptActionEnded(java.lang.String message)
Script action ended with the specified message parameter.

Specified by:
scriptActionEnded in interface ScriptRunListenerService
Parameters:
message - The message (String) parameter.

scriptActionError

public void scriptActionError(java.lang.String message,
                              java.lang.String detail)
Script action error with the specified message and detail parameters.

Specified by:
scriptActionError in interface ScriptRunListenerService
Parameters:
message - The message (String) parameter.
detail - The detail (String) parameter.

scriptActionInfo

public void scriptActionInfo(java.lang.String message)
Script action info with the specified message parameter.

Specified by:
scriptActionInfo in interface ScriptRunListenerService
Parameters:
message - The message (String) parameter.

scriptActionStarted

public void scriptActionStarted(java.lang.String message)
Script action started with the specified message parameter.

Specified by:
scriptActionStarted in interface ScriptRunListenerService
Parameters:
message - The message (String) parameter.

scriptRunEnded

public void scriptRunEnded(java.util.Map testStatistics)
Script run ended with the specified test statistics parameter.

Specified by:
scriptRunEnded in interface ScriptRunListenerService
Parameters:
testStatistics - The test statistics (Map) parameter.

scriptRunError

public void scriptRunError(java.lang.String message,
                           java.lang.String trace)
Script run error with the specified message and trace parameters.

Specified by:
scriptRunError in interface ScriptRunListenerService
Parameters:
message - The message (String) parameter.
trace - The trace (String) parameter.

scriptRunStarted

public void scriptRunStarted(TestScriptService script)
Script run started with the specified script parameter.

Specified by:
scriptRunStarted in interface ScriptRunListenerService
Parameters:
script - The script (TestScriptService) parameter.

testEnded

public void testEnded(java.lang.String runId,
                      java.lang.String testName)
Test ended with the specified run id and test name parameters.

Specified by:
testEnded in interface TestRunListenerService
Parameters:
runId - The run id (String) parameter.
testName - The test name (String) parameter.
See Also:
TestRunListenerService.testRunEnded(String)

testError

public void testError(java.lang.String runId,
                      java.lang.String testName,
                      java.lang.String trace)
Test error with the specified run id, test name and trace parameters.

Specified by:
testError in interface TestRunListenerService
Parameters:
runId - The run id (String) parameter.
testName - The test name (String) parameter.
trace - The trace (String) parameter.
See Also:
TestRunListenerService.testRunError(String,String,String)

testFailed

public void testFailed(java.lang.String runId,
                       java.lang.String testName,
                       java.lang.String trace)
Test failed with the specified run id, test name and trace parameters.

Specified by:
testFailed in interface TestRunListenerService
Parameters:
runId - The run id (String) parameter.
testName - The test name (String) parameter.
trace - The trace (String) parameter.

testRunEnded

public void testRunEnded(java.lang.String runId)
Test run ended with the specified run id parameter.

Specified by:
testRunEnded in interface TestRunListenerService
Parameters:
runId - The run id (String) parameter.

testRunError

public void testRunError(java.lang.String runId,
                         java.lang.String message,
                         java.lang.String detail)
Test run error with the specified run id, message and detail parameters.

Specified by:
testRunError in interface TestRunListenerService
Parameters:
runId - The run id (String) parameter.
message - The message (String) parameter.
detail - The detail (String) parameter.

testRunStarted

public void testRunStarted(java.lang.String runId)
Test run started with the specified run id parameter.

Specified by:
testRunStarted in interface TestRunListenerService
Parameters:
runId - The run id (String) parameter.

testStarted

public void testStarted(java.lang.String runId,
                        java.lang.String testName)
Test started with the specified run id and test name parameters.

Specified by:
testStarted in interface TestRunListenerService
Parameters:
runId - The run id (String) parameter.
testName - The test name (String) parameter.
See Also:
TestRunListenerService.testRunStarted(String)

waitForNextEvent

public TestReport.Event waitForNextEvent()
                                  throws java.lang.InterruptedException
Wait for next event and return the Event result.

Returns:
Results of the wait for next event (Event) value.
Throws:
java.lang.InterruptedException - Interrupted Exception.

1.0.0

Copyright (c) 2007 IBM