Class ChainTestListener

java.lang.Object
com.aventstack.chaintest.plugins.ChainTestListener
All Implemented Interfaces:
org.testng.IClassListener, org.testng.IExecutionListener, org.testng.IInvokedMethodListener, org.testng.ISuiteListener, org.testng.ITestListener, org.testng.ITestNGListener

public class ChainTestListener extends Object implements org.testng.IExecutionListener, org.testng.ISuiteListener, org.testng.IClassListener, org.testng.ITestListener, org.testng.IInvokedMethodListener
  • Constructor Details

    • ChainTestListener

      public ChainTestListener()
  • Method Details

    • log

      public static void log(String log)
    • embed

      public static void embed(byte[] data, String mimeType)
    • embed

      public static void embed(File file, String mimeType)
    • embed

      public static void embed(String base64, String mimeType)
    • 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
    • onBeforeClass

      public void onBeforeClass(org.testng.ITestClass testClass)
      Specified by:
      onBeforeClass in interface org.testng.IClassListener
    • onAfterClass

      public void onAfterClass(org.testng.ITestClass testClass)
      Specified by:
      onAfterClass in interface org.testng.IClassListener
    • beforeInvocation

      public void beforeInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult result)
      Specified by:
      beforeInvocation in interface org.testng.IInvokedMethodListener
    • afterInvocation

      public void afterInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult result, org.testng.ITestContext ctx)
      Specified by:
      afterInvocation in interface org.testng.IInvokedMethodListener
    • onStart

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

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

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

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

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

      public void onTestSkipped(org.testng.ITestResult result)
      Specified by:
      onTestSkipped in interface org.testng.ITestListener
    • onTestFailedWithTimeout

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

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