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

@ParametersAreNonnullByDefault public class SoftAsserts extends org.testng.reporters.ExitCodeListener
Annotate your test class with @Listeners({ SoftAsserts.class})
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beforeConfiguration(org.testng.ITestResult result)
     
    void
    onConfigurationFailure(org.testng.ITestResult result)
     
    void
    onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
     
    void
    onTestFailure(org.testng.ITestResult result)
     
    void
    onTestStart(org.testng.ITestResult result)
     
    void
    onTestSuccess(org.testng.ITestResult result)
     

    Methods inherited from class org.testng.reporters.ExitCodeListener

    onConfigurationSkip, onConfigurationSuccess, onFinish, onStart, onTestSkipped

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.testng.IConfigurationListener

    beforeConfiguration, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess

    Methods inherited from interface org.testng.ITestListener

    onTestFailedWithTimeout
  • Field Details

    • fullStacktraces

      public static boolean fullStacktraces
  • Constructor Details

    • SoftAsserts

      public SoftAsserts()
  • Method Details

    • onTestStart

      public void onTestStart(org.testng.ITestResult result)
      Specified by:
      onTestStart in interface org.testng.ITestListener
      Overrides:
      onTestStart in class org.testng.reporters.ExitCodeListener
    • onTestFailure

      public void onTestFailure(org.testng.ITestResult result)
      Specified by:
      onTestFailure in interface org.testng.ITestListener
      Overrides:
      onTestFailure in class org.testng.reporters.ExitCodeListener
    • onTestFailedButWithinSuccessPercentage

      public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
      Specified by:
      onTestFailedButWithinSuccessPercentage in interface org.testng.ITestListener
      Overrides:
      onTestFailedButWithinSuccessPercentage in class org.testng.reporters.ExitCodeListener
    • onTestSuccess

      public void onTestSuccess(org.testng.ITestResult result)
      Specified by:
      onTestSuccess in interface org.testng.ITestListener
      Overrides:
      onTestSuccess in class org.testng.reporters.ExitCodeListener
    • onConfigurationFailure

      public void onConfigurationFailure(org.testng.ITestResult result)
      Specified by:
      onConfigurationFailure in interface org.testng.IConfigurationListener
      Overrides:
      onConfigurationFailure in class org.testng.reporters.ExitCodeListener
    • beforeConfiguration

      public void beforeConfiguration(org.testng.ITestResult result)
      Specified by:
      beforeConfiguration in interface org.testng.IConfigurationListener
      Overrides:
      beforeConfiguration in class org.testng.reporters.ExitCodeListener