Package com.codeborne.selenide.testng
Class SoftAsserts
java.lang.Object
org.testng.reporters.ExitCodeListener
com.codeborne.selenide.testng.SoftAsserts
- All Implemented Interfaces:
org.testng.IConfigurationListener,org.testng.internal.IResultListener,org.testng.internal.IResultListener2,org.testng.ITestListener,org.testng.ITestNGListener
public class SoftAsserts
extends org.testng.reporters.ExitCodeListener
Annotate your test class with
@Listeners({ SoftAsserts.class})-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeConfiguration(org.testng.ITestResult result) voidonConfigurationFailure(org.testng.ITestResult result) voidonTestFailedButWithinSuccessPercentage(org.testng.ITestResult result) voidonTestFailure(org.testng.ITestResult result) voidonTestStart(org.testng.ITestResult result) voidonTestSuccess(org.testng.ITestResult result) Methods inherited from class org.testng.reporters.ExitCodeListener
onConfigurationSkip, onConfigurationSuccess, onStart, onTestSkippedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.testng.IConfigurationListener
beforeConfiguration, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccessMethods inherited from interface org.testng.ITestListener
onFinish, onTestFailedWithTimeoutMethods inherited from interface org.testng.ITestNGListener
isEnabled
-
Field Details
-
fullStacktraces
public static boolean fullStacktraces
-
-
Constructor Details
-
SoftAsserts
public SoftAsserts()
-
-
Method Details
-
onTestStart
public void onTestStart(org.testng.ITestResult result) - Specified by:
onTestStartin interfaceorg.testng.ITestListener- Overrides:
onTestStartin classorg.testng.reporters.ExitCodeListener
-
onTestFailure
public void onTestFailure(org.testng.ITestResult result) - Specified by:
onTestFailurein interfaceorg.testng.ITestListener- Overrides:
onTestFailurein classorg.testng.reporters.ExitCodeListener
-
onTestFailedButWithinSuccessPercentage
public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result) - Specified by:
onTestFailedButWithinSuccessPercentagein interfaceorg.testng.ITestListener- Overrides:
onTestFailedButWithinSuccessPercentagein classorg.testng.reporters.ExitCodeListener
-
onTestSuccess
public void onTestSuccess(org.testng.ITestResult result) - Specified by:
onTestSuccessin interfaceorg.testng.ITestListener- Overrides:
onTestSuccessin classorg.testng.reporters.ExitCodeListener
-
onConfigurationFailure
public void onConfigurationFailure(org.testng.ITestResult result) - Specified by:
onConfigurationFailurein interfaceorg.testng.IConfigurationListener- Overrides:
onConfigurationFailurein classorg.testng.reporters.ExitCodeListener
-
beforeConfiguration
public void beforeConfiguration(org.testng.ITestResult result)
-