Class TestLogger

java.lang.Object
org.testng.TestListenerAdapter
it.tidalwave.util.test.TestLogger
All Implemented Interfaces:
org.testng.IConfigurationListener, 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
     
  • Method Summary

    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

    getAllTestMethods, getConfigurationFailures, getConfigurationSkips, getFailedButWithinSuccessPercentageTests, getFailedTests, getPassedTests, getSkippedTests, getTestContexts, getTimedoutTests, onConfigurationSuccess, onTestFailedWithTimeout, setAllTestMethods, setFailedButWithinSuccessPercentageTests, setFailedTests, setPassedTests, setSkippedTests, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.testng.IConfigurationListener

    beforeConfiguration, beforeConfiguration, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess

    Methods inherited from interface org.testng.ITestNGListener

    isEnabled
  • Constructor Details

    • TestLogger

      public TestLogger()
  • Method Details

    • 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)
    • 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)
    • 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