Class 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.IResultListener2
    ReportPortal custom event listener. Support parallel execution of test methods, suites, test classes. Can be extended by providing ITestNGService implementation
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beforeConfiguration​(org.testng.ITestResult testResult)  
      void onConfigurationFailure​(org.testng.ITestResult testResult)  
      void onConfigurationSkip​(org.testng.ITestResult testResult)  
      void onConfigurationSuccess​(org.testng.ITestResult testResult)  
      void onExecutionFinish()  
      void onExecutionStart()  
      void onFinish​(org.testng.ISuite suite)  
      void onFinish​(org.testng.ITestContext testContext)  
      void onStart​(org.testng.ISuite suite)  
      void onStart​(org.testng.ITestContext testContext)  
      void onTestFailedButWithinSuccessPercentage​(org.testng.ITestResult result)  
      void onTestFailure​(org.testng.ITestResult testResult)  
      void onTestSkipped​(org.testng.ITestResult testResult)  
      void onTestStart​(org.testng.ITestResult testResult)  
      void onTestSuccess​(org.testng.ITestResult testResult)  
      • 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
      • Methods inherited from interface org.testng.ITestNGListener

        isEnabled
    • Constructor Detail

      • BaseTestNGListener

        public BaseTestNGListener​(ITestNGService testNgService)
    • Method Detail

      • onExecutionStart

        public void onExecutionStart()
        Specified by:
        onExecutionStart in interface org.testng.IExecutionListener
      • onExecutionFinish

        public void onExecutionFinish()
        Specified by:
        onExecutionFinish in interface org.testng.IExecutionListener
      • onStart

        public void onStart​(org.testng.ISuite suite)
        Specified by:
        onStart in interface org.testng.ISuiteListener
      • onFinish

        public void onFinish​(org.testng.ISuite suite)
        Specified by:
        onFinish in interface org.testng.ISuiteListener
      • onStart

        public void onStart​(org.testng.ITestContext testContext)
        Specified by:
        onStart in interface org.testng.ITestListener
      • onFinish

        public void onFinish​(org.testng.ITestContext testContext)
        Specified by:
        onFinish in interface org.testng.ITestListener
      • onTestStart

        public void onTestStart​(org.testng.ITestResult testResult)
        Specified by:
        onTestStart in interface org.testng.ITestListener
      • onTestSuccess

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

        public void onTestFailure​(org.testng.ITestResult testResult)
        Specified by:
        onTestFailure in interface org.testng.ITestListener
      • onTestSkipped

        public void onTestSkipped​(org.testng.ITestResult testResult)
        Specified by:
        onTestSkipped in interface org.testng.ITestListener
      • beforeConfiguration

        public void beforeConfiguration​(org.testng.ITestResult testResult)
        Specified by:
        beforeConfiguration in interface org.testng.IConfigurationListener
      • onConfigurationFailure

        public void onConfigurationFailure​(org.testng.ITestResult testResult)
        Specified by:
        onConfigurationFailure in interface org.testng.IConfigurationListener
      • onConfigurationSuccess

        public void onConfigurationSuccess​(org.testng.ITestResult testResult)
        Specified by:
        onConfigurationSuccess in interface org.testng.IConfigurationListener
      • onConfigurationSkip

        public void onConfigurationSkip​(org.testng.ITestResult testResult)
        Specified by:
        onConfigurationSkip in interface org.testng.IConfigurationListener
      • onTestFailedButWithinSuccessPercentage

        public void onTestFailedButWithinSuccessPercentage​(org.testng.ITestResult result)
        Specified by:
        onTestFailedButWithinSuccessPercentage in interface org.testng.ITestListener