Package com.epam.reportportal.testng
Class BaseTestNGListener
- java.lang.Object
-
- com.epam.reportportal.testng.BaseTestNGListener
-
- All Implemented Interfaces:
org.testng.IConfigurationListener,org.testng.IExecutionListener,org.testng.internal.IResultListener,org.testng.internal.IResultListener2,org.testng.ISuiteListener,org.testng.ITestListener,org.testng.ITestNGListener
- Direct Known Subclasses:
ReportPortalTestNGListener
public class BaseTestNGListener extends java.lang.Object implements org.testng.IExecutionListener, org.testng.ISuiteListener, org.testng.internal.IResultListener2ReportPortal custom event listener. Support parallel execution of test methods, suites, test classes. Can be extended by providingITestNGServiceimplementation
-
-
Constructor Summary
Constructors Constructor Description BaseTestNGListener(ITestNGService testNgService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeConfiguration(org.testng.ITestResult testResult)voidonConfigurationFailure(org.testng.ITestResult testResult)voidonConfigurationSkip(org.testng.ITestResult testResult)voidonConfigurationSuccess(org.testng.ITestResult testResult)voidonExecutionFinish()voidonExecutionStart()voidonFinish(org.testng.ISuite suite)voidonFinish(org.testng.ITestContext testContext)voidonStart(org.testng.ISuite suite)voidonStart(org.testng.ITestContext testContext)voidonTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)voidonTestFailure(org.testng.ITestResult testResult)voidonTestSkipped(org.testng.ITestResult testResult)voidonTestStart(org.testng.ITestResult testResult)voidonTestSuccess(org.testng.ITestResult testResult)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
BaseTestNGListener
public BaseTestNGListener(ITestNGService testNgService)
-
-
Method Detail
-
onExecutionStart
public void onExecutionStart()
- Specified by:
onExecutionStartin interfaceorg.testng.IExecutionListener
-
onExecutionFinish
public void onExecutionFinish()
- Specified by:
onExecutionFinishin interfaceorg.testng.IExecutionListener
-
onStart
public void onStart(org.testng.ISuite suite)
- Specified by:
onStartin interfaceorg.testng.ISuiteListener
-
onFinish
public void onFinish(org.testng.ISuite suite)
- Specified by:
onFinishin interfaceorg.testng.ISuiteListener
-
onStart
public void onStart(org.testng.ITestContext testContext)
- Specified by:
onStartin interfaceorg.testng.ITestListener
-
onFinish
public void onFinish(org.testng.ITestContext testContext)
- Specified by:
onFinishin interfaceorg.testng.ITestListener
-
onTestStart
public void onTestStart(org.testng.ITestResult testResult)
- Specified by:
onTestStartin interfaceorg.testng.ITestListener
-
onTestSuccess
public void onTestSuccess(org.testng.ITestResult testResult)
- Specified by:
onTestSuccessin interfaceorg.testng.ITestListener
-
onTestFailure
public void onTestFailure(org.testng.ITestResult testResult)
- Specified by:
onTestFailurein interfaceorg.testng.ITestListener
-
onTestSkipped
public void onTestSkipped(org.testng.ITestResult testResult)
- Specified by:
onTestSkippedin interfaceorg.testng.ITestListener
-
beforeConfiguration
public void beforeConfiguration(org.testng.ITestResult testResult)
- Specified by:
beforeConfigurationin interfaceorg.testng.IConfigurationListener
-
onConfigurationFailure
public void onConfigurationFailure(org.testng.ITestResult testResult)
- Specified by:
onConfigurationFailurein interfaceorg.testng.IConfigurationListener
-
onConfigurationSuccess
public void onConfigurationSuccess(org.testng.ITestResult testResult)
- Specified by:
onConfigurationSuccessin interfaceorg.testng.IConfigurationListener
-
onConfigurationSkip
public void onConfigurationSkip(org.testng.ITestResult testResult)
- Specified by:
onConfigurationSkipin interfaceorg.testng.IConfigurationListener
-
onTestFailedButWithinSuccessPercentage
public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
- Specified by:
onTestFailedButWithinSuccessPercentagein interfaceorg.testng.ITestListener
-
-