public class SerenityTestExecutionListener extends Object implements org.junit.platform.launcher.TestExecutionListener
| Constructor and Description |
|---|
SerenityTestExecutionListener() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addExpectedException(Class exceptionClass) |
void |
dynamicTestRegistered(org.junit.platform.launcher.TestIdentifier testIdentifier) |
void |
executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier,
org.junit.platform.engine.TestExecutionResult testExecutionResult) |
void |
executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier,
String reason) |
void |
executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier) |
List<TestOutcome> |
getTestOutcomes(org.junit.platform.launcher.TestIdentifier testIdentifier)
Find the current set of test outcomes produced by the test execution.
|
protected void |
injectAnnotatedPagesObjectInto(Object testCase)
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.
|
void |
testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan) |
void |
testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan) |
public void testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
testPlanExecutionStarted in interface org.junit.platform.launcher.TestExecutionListenerpublic void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)
testPlanExecutionFinished in interface org.junit.platform.launcher.TestExecutionListenerpublic void dynamicTestRegistered(org.junit.platform.launcher.TestIdentifier testIdentifier)
dynamicTestRegistered in interface org.junit.platform.launcher.TestExecutionListenerpublic void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier,
String reason)
executionSkipped in interface org.junit.platform.launcher.TestExecutionListenerpublic void executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
executionStarted in interface org.junit.platform.launcher.TestExecutionListenerpublic void executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier,
org.junit.platform.engine.TestExecutionResult testExecutionResult)
executionFinished in interface org.junit.platform.launcher.TestExecutionListenerpublic List<TestOutcome> getTestOutcomes(org.junit.platform.launcher.TestIdentifier testIdentifier)
testIdentifier - protected void injectAnnotatedPagesObjectInto(Object testCase)
testCase - A Serenity-annotated test classpublic static void addExpectedException(Class exceptionClass)
Copyright © 2022. All rights reserved.