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
public class TextReportExtension
extends Object
implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.AfterAllCallback
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize default text report extension that log successful and failed tests. -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAll(org.junit.jupiter.api.extension.ExtensionContext context) voidafterEach(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeEach(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- whether to log failed tests- Returns:
- current extension instance
-
onSucceededTest
Initialize text report extension with specified successful tests log strategy.- Parameters:
onSucceededTest- whether to log succeeded tests- Returns:
- current extension instance
-
beforeEach
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
-
afterEach
public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback
-