Class TestNgRetriesListener
- java.lang.Object
-
- com.epam.reportportal.cucumber.testng.TestNgRetriesListener
-
- All Implemented Interfaces:
org.testng.IExecutionListener,org.testng.ITestListener,org.testng.ITestNGListener
public class TestNgRetriesListener extends java.lang.Object implements org.testng.IExecutionListener, org.testng.ITestListenerThe listener is supposed to be used with TestNG Cucumber runner and retry listeners to allowScenarioReporterdetermine if a Scenario is a retry.
-
-
Constructor Summary
Constructors Constructor Description TestNgRetriesListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisRetry(java.lang.String id)voidonExecutionFinish()voidonTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)voidonTestFailure(org.testng.ITestResult result)voidonTestSkipped(org.testng.ITestResult result)voidonTestSuccess(org.testng.ITestResult result)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
onExecutionFinish
public void onExecutionFinish()
- Specified by:
onExecutionFinishin interfaceorg.testng.IExecutionListener
-
onTestSuccess
public void onTestSuccess(org.testng.ITestResult result)
- Specified by:
onTestSuccessin interfaceorg.testng.ITestListener
-
onTestFailure
public void onTestFailure(org.testng.ITestResult result)
- Specified by:
onTestFailurein interfaceorg.testng.ITestListener
-
onTestSkipped
public void onTestSkipped(org.testng.ITestResult result)
- Specified by:
onTestSkippedin interfaceorg.testng.ITestListener
-
onTestFailedButWithinSuccessPercentage
public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
- Specified by:
onTestFailedButWithinSuccessPercentagein interfaceorg.testng.ITestListener
-
isRetry
public static boolean isRetry(java.lang.String id)
-
-