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 Summary
Constructors Constructor and Description CarbonBasedTestListener()
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
onAfterClass(org.testng.ITestClass iTestClass, org.testng.IMethodInstance iMethodInstance)
void
onBeforeClass(org.testng.ITestClass iTestClass, org.testng.IMethodInstance iMethodInstance)
void
onFinish(org.testng.ITestContext iTestContext)
void
onStart(org.testng.ITestContext iTestContext)
void
onTestFailedButWithinSuccessPercentage(org.testng.ITestResult iTestResult)
void
onTestFailure(org.testng.ITestResult iTestResult)
void
onTestSkipped(org.testng.ITestResult iTestResult)
void
onTestStart(org.testng.ITestResult iTestResult)
void
onTestSuccess(org.testng.ITestResult iTestResult)
static void
setInternalState(Class c, String field, Object value)
static void
setInternalState(Object target, String field, Object value)
-
Method Detail
onTestStart
public void onTestStart(org.testng.ITestResult iTestResult)
- Specified by:
-
onTestStart
in interfaceorg.testng.ITestListener
onTestSuccess
public void onTestSuccess(org.testng.ITestResult iTestResult)
- Specified by:
-
onTestSuccess
in interfaceorg.testng.ITestListener
onTestFailure
public void onTestFailure(org.testng.ITestResult iTestResult)
- Specified by:
-
onTestFailure
in interfaceorg.testng.ITestListener
onTestSkipped
public void onTestSkipped(org.testng.ITestResult iTestResult)
- Specified by:
-
onTestSkipped
in interfaceorg.testng.ITestListener
onTestFailedButWithinSuccessPercentage
public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult iTestResult)
- Specified by:
-
onTestFailedButWithinSuccessPercentage
in interfaceorg.testng.ITestListener
onStart
public void onStart(org.testng.ITestContext iTestContext)
- Specified by:
-
onStart
in interfaceorg.testng.ITestListener
onFinish
public void onFinish(org.testng.ITestContext iTestContext)
- Specified by:
-
onFinish
in interfaceorg.testng.ITestListener
onBeforeClass
public void onBeforeClass(org.testng.ITestClass iTestClass, org.testng.IMethodInstance iMethodInstance)
- Specified by:
-
onBeforeClass
in interfaceorg.testng.IClassListener
onAfterClass
public void onAfterClass(org.testng.ITestClass iTestClass, org.testng.IMethodInstance iMethodInstance)
- Specified by:
-
onAfterClass
in interfaceorg.testng.IClassListener
Copyright © 2018 WSO2. All rights reserved.