org.wso2.carbon.identity.common.testng

Class CarbonBasedTestListener

  • java.lang.Object
    • org.wso2.carbon.identity.common.testng.CarbonBasedTestListener
  • All Implemented Interfaces:
    org.testng.IClassListener, org.testng.ITestListener, org.testng.ITestNGListener

    public class CarbonBasedTestListener
    extends Object
    implements org.testng.ITestListener, org.testng.IClassListener
    Common TestNg Listener to provide common functions in Identity Testing.
    • Constructor Detail

      • CarbonBasedTestListener

        public CarbonBasedTestListener()
    • Method Detail

      • onTestStart

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

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

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

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

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

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

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

        public static void setInternalState(Class c,
                                            String field,
                                            Object value)
      • setInternalState

        public static void setInternalState(Object target,
                                            String field,
                                            Object value)
      • onBeforeClass

        public void onBeforeClass(org.testng.ITestClass iTestClass,
                                  org.testng.IMethodInstance iMethodInstance)
        Specified by:
        onBeforeClass in interface  org.testng.IClassListener
      • onAfterClass

        public void onAfterClass(org.testng.ITestClass iTestClass,
                                 org.testng.IMethodInstance iMethodInstance)
        Specified by:
        onAfterClass in interface  org.testng.IClassListener

Copyright © 2018 WSO2. All rights reserved.