Class TestLogger

  • All Implemented Interfaces:
    org.testng.IConfigurationListener, org.testng.IConfigurationListener2, org.testng.internal.IResultListener, org.testng.internal.IResultListener2, org.testng.ITestListener, org.testng.ITestNGListener

    public class TestLogger
    extends org.testng.TestListenerAdapter
    Author:
    Fabrizio Giudici
    • Constructor Summary

      Constructors 
      Constructor Description
      TestLogger()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onConfigurationFailure​(org.testng.ITestResult result)  
      void onConfigurationSkip​(org.testng.ITestResult result)  
      void onFinish​(org.testng.ITestContext testContext)  
      void onStart​(org.testng.ITestContext testContext)  
      void onTestFailedButWithinSuccessPercentage​(org.testng.ITestResult result)  
      void onTestFailure​(org.testng.ITestResult result)  
      void onTestSkipped​(org.testng.ITestResult result)  
      void onTestStart​(org.testng.ITestResult result)  
      void onTestSuccess​(org.testng.ITestResult result)  
      • Methods inherited from class org.testng.TestListenerAdapter

        beforeConfiguration, getAllTestMethods, getConfigurationFailures, getConfigurationSkips, getFailedButWithinSuccessPercentageTests, getFailedTests, getPassedTests, getSkippedTests, getTestContexts, onConfigurationSuccess, setAllTestMethods, setFailedButWithinSuccessPercentageTests, setFailedTests, setPassedTests, setSkippedTests, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TestLogger

        public TestLogger()
    • Method Detail

      • onStart

        public void onStart​(@Nonnull
                            org.testng.ITestContext testContext)
        Specified by:
        onStart in interface org.testng.ITestListener
        Overrides:
        onStart in class org.testng.TestListenerAdapter
      • onFinish

        public void onFinish​(@Nonnull
                             org.testng.ITestContext testContext)
        Specified by:
        onFinish in interface org.testng.ITestListener
        Overrides:
        onFinish in class org.testng.TestListenerAdapter
      • onConfigurationSkip

        public void onConfigurationSkip​(@Nonnull
                                        org.testng.ITestResult result)
        Specified by:
        onConfigurationSkip in interface org.testng.IConfigurationListener
        Overrides:
        onConfigurationSkip in class org.testng.TestListenerAdapter
      • onConfigurationFailure

        public void onConfigurationFailure​(@Nonnull
                                           org.testng.ITestResult result)
        Specified by:
        onConfigurationFailure in interface org.testng.IConfigurationListener
        Overrides:
        onConfigurationFailure in class org.testng.TestListenerAdapter
      • onTestStart

        public void onTestStart​(@Nonnull
                                org.testng.ITestResult result)
        Specified by:
        onTestStart in interface org.testng.ITestListener
        Overrides:
        onTestStart in class org.testng.TestListenerAdapter
      • onTestFailure

        public void onTestFailure​(@Nonnull
                                  org.testng.ITestResult result)
        Specified by:
        onTestFailure in interface org.testng.ITestListener
        Overrides:
        onTestFailure in class org.testng.TestListenerAdapter
      • onTestFailedButWithinSuccessPercentage

        public void onTestFailedButWithinSuccessPercentage​(@Nonnull
                                                           org.testng.ITestResult result)
        Specified by:
        onTestFailedButWithinSuccessPercentage in interface org.testng.ITestListener
        Overrides:
        onTestFailedButWithinSuccessPercentage in class org.testng.TestListenerAdapter
      • onTestSkipped

        public void onTestSkipped​(@Nonnull
                                  org.testng.ITestResult result)
        Specified by:
        onTestSkipped in interface org.testng.ITestListener
        Overrides:
        onTestSkipped in class org.testng.TestListenerAdapter
      • onTestSuccess

        public void onTestSuccess​(@Nonnull
                                  org.testng.ITestResult result)
        Specified by:
        onTestSuccess in interface org.testng.ITestListener
        Overrides:
        onTestSuccess in class org.testng.TestListenerAdapter