Class AbstractSauceLabsReporter
- java.lang.Object
-
- org.testng.TestListenerAdapter
-
- dev.aherscu.qa.jgiven.webdriver.utils.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
Reportspass
orfail
to SauceLabs per Web Driver session.See also:
Add to your
testng.xml
file in order to report test statuses to SauceLabs.
-
-
Constructor Summary
Constructors Constructor Description AbstractSauceLabsReporter()
-
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
-
-
-
-
Method Detail
-
onTestSuccess
public void onTestSuccess(org.testng.ITestResult testResult)
- Specified by:
onTestSuccess
in interfaceorg.testng.ITestListener
- Overrides:
onTestSuccess
in classorg.testng.TestListenerAdapter
-
onTestFailure
public void onTestFailure(org.testng.ITestResult testResult)
- Specified by:
onTestFailure
in interfaceorg.testng.ITestListener
- Overrides:
onTestFailure
in classorg.testng.TestListenerAdapter
-
sauceLabs
protected abstract com.saucelabs.saucerest.SauceREST sauceLabs()
- Returns:
- implement to return a
SauceREST
.
-
-