Package net.serenitybdd.junit5
Class SerenityTestExecutionListener
java.lang.Object
net.serenitybdd.junit5.SerenityTestExecutionListener
- All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener
public class SerenityTestExecutionListener
extends Object
implements org.junit.platform.launcher.TestExecutionListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddExpectedException(Class exceptionClass) voiddynamicTestRegistered(org.junit.platform.launcher.TestIdentifier testIdentifier) voidexecutionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult) voidexecutionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason) voidexecutionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier) getTestOutcomes(org.junit.platform.launcher.TestIdentifier testIdentifier) Find the current set of test outcomes produced by the test execution.protected voidinjectAnnotatedPagesObjectInto(Object testCase) Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.voidtestPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan) voidtestPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.platform.launcher.TestExecutionListener
reportingEntryPublished
-
Constructor Details
-
SerenityTestExecutionListener
public SerenityTestExecutionListener()
-
-
Method Details
-
testPlanExecutionStarted
public void testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan) - Specified by:
testPlanExecutionStartedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
testPlanExecutionFinished
public void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan) - Specified by:
testPlanExecutionFinishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
dynamicTestRegistered
public void dynamicTestRegistered(org.junit.platform.launcher.TestIdentifier testIdentifier) - Specified by:
dynamicTestRegisteredin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionSkipped
public void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason) - Specified by:
executionSkippedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionStarted
public void executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier) - Specified by:
executionStartedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionFinished
public void executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult) - Specified by:
executionFinishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
getTestOutcomes
Find the current set of test outcomes produced by the test execution.- Parameters:
testIdentifier-- Returns:
- the current list of test outcomes
-
injectAnnotatedPagesObjectInto
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.- Parameters:
testCase- A Serenity-annotated test class
-
addExpectedException
-