Package com.codeborne.selenide.testng
Class TextReport
- java.lang.Object
-
- com.codeborne.selenide.testng.TextReport
-
- All Implemented Interfaces:
org.testng.IInvokedMethodListener,org.testng.ITestNGListener
public class TextReport extends java.lang.Object implements org.testng.IInvokedMethodListenerReports for all method of annotated class in the suite. Annotate any test class in your suite with@Listeners({TextReport.class})Annotate test classes to be reported with@{@link Report}- Since:
- Selenide 3.6
Use either
TextReportorGlobalTextReport, never both
-
-
Field Summary
Fields Modifier and Type Field Description static booleanonFailedTeststatic booleanonSucceededTestprotected SimpleReportreport
-
Constructor Summary
Constructors Constructor Description TextReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult)voidbeforeInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult)
-
-
-
Field Detail
-
report
protected SimpleReport report
-
onFailedTest
public static boolean onFailedTest
-
onSucceededTest
public static boolean onSucceededTest
-
-
Method Detail
-
beforeInvocation
public void beforeInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult)- Specified by:
beforeInvocationin interfaceorg.testng.IInvokedMethodListener
-
afterInvocation
public void afterInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult)- Specified by:
afterInvocationin interfaceorg.testng.IInvokedMethodListener
-
-