Class AbstractSauceLabsReporter

  • All Implemented Interfaces:
    org.testng.IConfigurationListener, org.testng.internal.IResultListener, org.testng.internal.IResultListener2, org.testng.ITestListener, org.testng.ITestNGListener
    Direct Known Subclasses:
    SauceLabsReporter

    public abstract class AbstractSauceLabsReporter
    extends org.testng.TestListenerAdapter
    Reports pass or fail to SauceLabs per Web Driver session.

    See also:

    Add to your testng.xml file in order to report test statuses to SauceLabs.

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void onTestFailure​(org.testng.ITestResult testResult)  
      void onTestSuccess​(org.testng.ITestResult testResult)  
      protected abstract com.saucelabs.saucerest.SauceREST sauceLabs()  
      • Methods inherited from class org.testng.TestListenerAdapter

        beforeConfiguration, getAllTestMethods, getConfigurationFailures, getConfigurationSkips, getFailedButWithinSuccessPercentageTests, getFailedTests, getPassedTests, getSkippedTests, getTestContexts, getTimedoutTests, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess, onFinish, onStart, onTestFailedButWithinSuccessPercentage, onTestFailedWithTimeout, onTestSkipped, onTestStart, setAllTestMethods, setFailedButWithinSuccessPercentageTests, setFailedTests, setPassedTests, setSkippedTests, toString
      • Methods inherited from interface org.testng.IConfigurationListener

        beforeConfiguration, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess
    • Constructor Detail

      • AbstractSauceLabsReporter

        public AbstractSauceLabsReporter()
    • Method Detail

      • onTestSuccess

        public void onTestSuccess​(org.testng.ITestResult testResult)
        Specified by:
        onTestSuccess in interface org.testng.ITestListener
        Overrides:
        onTestSuccess in class org.testng.TestListenerAdapter
      • onTestFailure

        public void onTestFailure​(org.testng.ITestResult testResult)
        Specified by:
        onTestFailure in interface org.testng.ITestListener
        Overrides:
        onTestFailure in class org.testng.TestListenerAdapter
      • sauceLabs

        protected abstract com.saucelabs.saucerest.SauceREST sauceLabs()
        Returns:
        implement to return a SauceREST.