Package com.codeborne.selenide.junit5
Class TextReportExtension
java.lang.Object
com.codeborne.selenide.junit5.TextReportExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.AfterEachCallback
,org.junit.jupiter.api.extension.BeforeEachCallback
,org.junit.jupiter.api.extension.Extension
@ParametersAreNonnullByDefault
public class TextReportExtension
extends Object
implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.AfterAllCallback
- Since:
- 1.0.0
-
Constructor Summary
ConstructorDescriptionInitialize default text report extension that log successful and failed tests. -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterAll
(org.junit.jupiter.api.extension.ExtensionContext context) void
afterEach
(org.junit.jupiter.api.extension.ExtensionContext context) void
beforeEach
(org.junit.jupiter.api.extension.ExtensionContext context) onFailedTest
(boolean onFailedTest) Initialize text report extension with specified failed tests log strategy.onSucceededTest
(boolean onSucceededTest) Initialize text report extension with specified successful tests log strategy.
-
Constructor Details
-
TextReportExtension
public TextReportExtension()Initialize default text report extension that log successful and failed tests.
-
-
Method Details
-
onFailedTest
Initialize text report extension with specified failed tests log strategy.- Parameters:
onFailedTest
- parameter that indicate if need to log failed tests- Returns:
- current extension instance
-
onSucceededTest
Initialize text report extension with specified successful tests log strategy.- Parameters:
onSucceededTest
- parameter that indicate if need to log successful tests- Returns:
- current extension instance
-
beforeEach
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeEach
in interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
-
afterEach
public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
afterEach
in interfaceorg.junit.jupiter.api.extension.AfterEachCallback
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
afterAll
in interfaceorg.junit.jupiter.api.extension.AfterAllCallback
-