java.lang.Object
net.thucydides.junit.listeners.TestCountListener
- All Implemented Interfaces:
net.thucydides.model.steps.StepListener
-
Constructor Summary
ConstructorsModifierConstructorDescriptionTestCountListener
(net.thucydides.model.util.EnvironmentVariables environmentVariables, net.thucydides.model.statistics.TestCount testCount) protected
TestCountListener
(net.thucydides.model.util.EnvironmentVariables environmentVariables, org.slf4j.Logger logger, net.thucydides.model.statistics.TestCount testCount) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewExamplesFrom
(net.thucydides.model.domain.DataTable table) void
assumptionViolated
(String message) void
void
exampleStarted
(Map<String, String> data) protected org.slf4j.Logger
void
lastStepFailed
(net.thucydides.model.steps.StepFailure failure) void
void
skippedStepStarted
(net.thucydides.model.steps.ExecutedStepDescription description) void
stepFailed
(net.thucydides.model.steps.StepFailure failure) void
stepFailed
(net.thucydides.model.steps.StepFailure failure, List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshotList) void
void
stepFinished
(List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshotList) void
stepFinished
(List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshotList, ZonedDateTime time) void
void
void
stepPending
(String message) void
stepStarted
(net.thucydides.model.steps.ExecutedStepDescription description) void
takeScreenshots
(List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshots) void
takeScreenshots
(net.thucydides.model.domain.TestResult testResult, List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshots) void
void
testFailed
(net.thucydides.model.domain.TestOutcome testOutcome, Throwable cause) void
testFinished
(net.thucydides.model.domain.TestOutcome result) void
testFinished
(net.thucydides.model.domain.TestOutcome result, boolean isInDataDrivenTest, ZonedDateTime finishTime) void
void
void
void
void
void
void
testStarted
(String description) void
testStarted
(String description, String id) void
testStarted
(String description, String id, ZonedDateTime startTime) void
void
testSuiteStarted
(Class<?> storyClass) void
testSuiteStarted
(net.thucydides.model.domain.Story storyOrFeature) void
useExamplesFrom
(net.thucydides.model.domain.DataTable table) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.thucydides.model.steps.StepListener
exampleStarted, exampleStarted, exampleStarted, stepStarted, testFinished, testStarted, testStarted, testSuiteStarted
-
Constructor Details
-
TestCountListener
protected TestCountListener(net.thucydides.model.util.EnvironmentVariables environmentVariables, org.slf4j.Logger logger, net.thucydides.model.statistics.TestCount testCount) -
TestCountListener
public TestCountListener(net.thucydides.model.util.EnvironmentVariables environmentVariables, net.thucydides.model.statistics.TestCount testCount)
-
-
Method Details
-
getLogger
protected org.slf4j.Logger getLogger() -
testSuiteStarted
- Specified by:
testSuiteStarted
in interfacenet.thucydides.model.steps.StepListener
-
testSuiteStarted
public void testSuiteStarted(net.thucydides.model.domain.Story storyOrFeature) - Specified by:
testSuiteStarted
in interfacenet.thucydides.model.steps.StepListener
-
testSuiteFinished
public void testSuiteFinished()- Specified by:
testSuiteFinished
in interfacenet.thucydides.model.steps.StepListener
-
testStarted
- Specified by:
testStarted
in interfacenet.thucydides.model.steps.StepListener
-
testStarted
- Specified by:
testStarted
in interfacenet.thucydides.model.steps.StepListener
-
testStarted
- Specified by:
testStarted
in interfacenet.thucydides.model.steps.StepListener
-
testFinished
public void testFinished(net.thucydides.model.domain.TestOutcome result) - Specified by:
testFinished
in interfacenet.thucydides.model.steps.StepListener
-
testFinished
public void testFinished(net.thucydides.model.domain.TestOutcome result, boolean isInDataDrivenTest, ZonedDateTime finishTime) - Specified by:
testFinished
in interfacenet.thucydides.model.steps.StepListener
-
testRetried
public void testRetried()- Specified by:
testRetried
in interfacenet.thucydides.model.steps.StepListener
-
stepStarted
public void stepStarted(net.thucydides.model.steps.ExecutedStepDescription description) - Specified by:
stepStarted
in interfacenet.thucydides.model.steps.StepListener
-
skippedStepStarted
public void skippedStepStarted(net.thucydides.model.steps.ExecutedStepDescription description) - Specified by:
skippedStepStarted
in interfacenet.thucydides.model.steps.StepListener
-
stepFailed
public void stepFailed(net.thucydides.model.steps.StepFailure failure) - Specified by:
stepFailed
in interfacenet.thucydides.model.steps.StepListener
-
stepFailed
public void stepFailed(net.thucydides.model.steps.StepFailure failure, List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshotList) - Specified by:
stepFailed
in interfacenet.thucydides.model.steps.StepListener
-
lastStepFailed
public void lastStepFailed(net.thucydides.model.steps.StepFailure failure) - Specified by:
lastStepFailed
in interfacenet.thucydides.model.steps.StepListener
-
stepIgnored
public void stepIgnored()- Specified by:
stepIgnored
in interfacenet.thucydides.model.steps.StepListener
-
stepPending
public void stepPending()- Specified by:
stepPending
in interfacenet.thucydides.model.steps.StepListener
-
stepPending
- Specified by:
stepPending
in interfacenet.thucydides.model.steps.StepListener
-
stepFinished
public void stepFinished()- Specified by:
stepFinished
in interfacenet.thucydides.model.steps.StepListener
-
stepFinished
public void stepFinished(List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshotList) - Specified by:
stepFinished
in interfacenet.thucydides.model.steps.StepListener
-
stepFinished
public void stepFinished(List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshotList, ZonedDateTime time) - Specified by:
stepFinished
in interfacenet.thucydides.model.steps.StepListener
-
testFailed
- Specified by:
testFailed
in interfacenet.thucydides.model.steps.StepListener
-
testIgnored
public void testIgnored()- Specified by:
testIgnored
in interfacenet.thucydides.model.steps.StepListener
-
testSkipped
public void testSkipped()- Specified by:
testSkipped
in interfacenet.thucydides.model.steps.StepListener
-
testAborted
public void testAborted()- Specified by:
testAborted
in interfacenet.thucydides.model.steps.StepListener
-
testPending
public void testPending()- Specified by:
testPending
in interfacenet.thucydides.model.steps.StepListener
-
testIsManual
public void testIsManual()- Specified by:
testIsManual
in interfacenet.thucydides.model.steps.StepListener
-
notifyScreenChange
public void notifyScreenChange()- Specified by:
notifyScreenChange
in interfacenet.thucydides.model.steps.StepListener
-
useExamplesFrom
public void useExamplesFrom(net.thucydides.model.domain.DataTable table) - Specified by:
useExamplesFrom
in interfacenet.thucydides.model.steps.StepListener
-
addNewExamplesFrom
public void addNewExamplesFrom(net.thucydides.model.domain.DataTable table) - Specified by:
addNewExamplesFrom
in interfacenet.thucydides.model.steps.StepListener
-
exampleStarted
- Specified by:
exampleStarted
in interfacenet.thucydides.model.steps.StepListener
-
exampleFinished
public void exampleFinished()- Specified by:
exampleFinished
in interfacenet.thucydides.model.steps.StepListener
-
assumptionViolated
- Specified by:
assumptionViolated
in interfacenet.thucydides.model.steps.StepListener
-
testRunFinished
public void testRunFinished()- Specified by:
testRunFinished
in interfacenet.thucydides.model.steps.StepListener
-
takeScreenshots
public void takeScreenshots(List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshots) - Specified by:
takeScreenshots
in interfacenet.thucydides.model.steps.StepListener
-
takeScreenshots
public void takeScreenshots(net.thucydides.model.domain.TestResult testResult, List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshots) - Specified by:
takeScreenshots
in interfacenet.thucydides.model.steps.StepListener
-