|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.thucydides.core.statistics.StatisticsListener
public class StatisticsListener
Records test results in a database, for reporting on test statistics.
| Constructor Summary | |
|---|---|
StatisticsListener(TestOutcomeHistoryDAO testOutcomeHistoryDAO,
EnvironmentVariables environmentVariables,
DatabaseConfig databaseConfig)
|
|
| Method Summary | |
|---|---|
void |
lastStepFailed(StepFailure failure)
Declare that a step has failed after it has finished. |
void |
notifyScreenChange()
|
void |
skippedStepStarted(ExecutedStepDescription description)
Called when a test step is about to be started, but this step is scheduled to be skipped. |
void |
stepFailed(StepFailure failure)
Called when a test step fails. |
void |
stepFinished()
Called when an test step has finished successfully |
void |
stepIgnored()
Called when a step will not be run, generally because a test method is annotated with Ignore. |
void |
stepIgnored(String message)
The step is marked as ignored with a descriptive message. |
void |
stepPending()
The step is marked as pending. |
void |
stepPending(String message)
The step is marked as pending with a descriptive message. |
void |
stepStarted(ExecutedStepDescription description)
Called when a test step is about to be started. |
void |
testFailed(TestOutcome result,
Throwable cause)
The test failed, but not while executing a step. |
void |
testFinished(TestOutcome result)
Called when a test finishes. |
void |
testIgnored()
The test as a whole was skipped or ignored. |
void |
testStarted(String description)
A test with a given name has started. |
void |
testSuiteFinished()
End of a test case or story. |
void |
testSuiteStarted(Class<?> storyClass)
Start a test run using a test case or a user story. |
void |
testSuiteStarted(Story story)
Start a test run using a specific story, without a corresponding Java class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public StatisticsListener(TestOutcomeHistoryDAO testOutcomeHistoryDAO,
EnvironmentVariables environmentVariables,
DatabaseConfig databaseConfig)
| Method Detail |
|---|
public void testSuiteStarted(Class<?> storyClass)
StepListener
testSuiteStarted in interface StepListenerpublic void testSuiteStarted(Story story)
StepListener
testSuiteStarted in interface StepListenerpublic void testStarted(String description)
StepListener
testStarted in interface StepListenerpublic void testFinished(TestOutcome result)
StepListener
testFinished in interface StepListenerpublic void testSuiteFinished()
StepListener
testSuiteFinished in interface StepListenerpublic void stepStarted(ExecutedStepDescription description)
StepListener
stepStarted in interface StepListenerdescription - the description of the test that is about to be run
(generally a class and method name)public void skippedStepStarted(ExecutedStepDescription description)
StepListener
skippedStepStarted in interface StepListenerdescription - the description of the test that is about to be run
(generally a class and method name)public void stepFailed(StepFailure failure)
StepListener
stepFailed in interface StepListenerfailure - describes the test that failed and the exception that was thrownpublic void lastStepFailed(StepFailure failure)
StepListener
lastStepFailed in interface StepListenerpublic void stepIgnored()
StepListenerIgnore.
stepIgnored in interface StepListenerpublic void stepIgnored(String message)
StepListener
stepIgnored in interface StepListenerpublic void stepPending()
StepListener
stepPending in interface StepListenerpublic void stepPending(String message)
StepListener
stepPending in interface StepListenerpublic void stepFinished()
StepListener
stepFinished in interface StepListener
public void testFailed(TestOutcome result,
Throwable cause)
StepListener
testFailed in interface StepListenerresult - The test outcome structure for the failing testcause - The exception that triggered the failurepublic void testIgnored()
StepListener
testIgnored in interface StepListenerpublic void notifyScreenChange()
notifyScreenChange in interface StepListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||