public class AllureTestNg
extends java.lang.Object
implements org.testng.ISuiteListener, org.testng.ITestListener, org.testng.IInvokedMethodListener, org.testng.IConfigurationListener
| Constructor and Description |
|---|
AllureTestNg() |
AllureTestNg(io.qameta.allure.AllureLifecycle lifecycle) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInvocation(org.testng.IInvokedMethod method,
org.testng.ITestResult testResult) |
void |
beforeInvocation(org.testng.IInvokedMethod method,
org.testng.ITestResult testResult) |
protected void |
createFakeResult(org.testng.ITestContext context,
org.testng.ITestNGMethod method) |
protected java.lang.String |
getHistoryId(org.testng.ITestNGMethod method,
java.util.List<io.qameta.allure.model.Parameter> parameters) |
io.qameta.allure.AllureLifecycle |
getLifecycle() |
protected io.qameta.allure.model.Status |
getStatus(java.lang.Throwable throwable) |
void |
onAfterClass(org.testng.ITestClass testClass) |
void |
onBeforeClass(org.testng.ITestClass testClass) |
void |
onConfigurationFailure(org.testng.ITestResult itr) |
void |
onConfigurationSkip(org.testng.ITestResult itr) |
void |
onConfigurationSuccess(org.testng.ITestResult itr) |
void |
onFinish(org.testng.ISuite suite) |
void |
onFinish(org.testng.ITestContext context) |
void |
onStart(org.testng.ISuite suite) |
void |
onStart(org.testng.ITestContext context) |
void |
onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result) |
void |
onTestFailure(org.testng.ITestResult result) |
void |
onTestSkipped(org.testng.ITestResult result) |
void |
onTestStart(org.testng.ITestResult testResult) |
void |
onTestSuccess(org.testng.ITestResult testResult) |
protected void |
startTestCase(org.testng.ITestContext context,
org.testng.ITestNGMethod method,
org.testng.IClass iClass,
java.lang.Object[] params,
java.lang.String parentUuid,
java.lang.String uuid) |
protected void |
startTestCase(org.testng.ITestResult testResult,
java.lang.String parentUuid,
java.lang.String uuid) |
protected void |
stopTestCase(java.lang.String uuid,
java.lang.Throwable throwable,
io.qameta.allure.model.Status status) |
public AllureTestNg(io.qameta.allure.AllureLifecycle lifecycle)
public AllureTestNg()
public io.qameta.allure.AllureLifecycle getLifecycle()
public void onStart(org.testng.ISuite suite)
onStart in interface org.testng.ISuiteListenerpublic void onStart(org.testng.ITestContext context)
onStart in interface org.testng.ITestListenerprotected void createFakeResult(org.testng.ITestContext context,
org.testng.ITestNGMethod method)
public void onFinish(org.testng.ISuite suite)
onFinish in interface org.testng.ISuiteListenerpublic void onFinish(org.testng.ITestContext context)
onFinish in interface org.testng.ITestListenerpublic void onBeforeClass(org.testng.ITestClass testClass)
public void onAfterClass(org.testng.ITestClass testClass)
public void onTestStart(org.testng.ITestResult testResult)
onTestStart in interface org.testng.ITestListenerprotected void startTestCase(org.testng.ITestResult testResult,
java.lang.String parentUuid,
java.lang.String uuid)
protected void startTestCase(org.testng.ITestContext context,
org.testng.ITestNGMethod method,
org.testng.IClass iClass,
java.lang.Object[] params,
java.lang.String parentUuid,
java.lang.String uuid)
public void onTestSuccess(org.testng.ITestResult testResult)
onTestSuccess in interface org.testng.ITestListenerpublic void onTestFailure(org.testng.ITestResult result)
onTestFailure in interface org.testng.ITestListenerprotected void stopTestCase(java.lang.String uuid,
java.lang.Throwable throwable,
io.qameta.allure.model.Status status)
public void onTestSkipped(org.testng.ITestResult result)
onTestSkipped in interface org.testng.ITestListenerpublic void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
onTestFailedButWithinSuccessPercentage in interface org.testng.ITestListenerpublic void beforeInvocation(org.testng.IInvokedMethod method,
org.testng.ITestResult testResult)
beforeInvocation in interface org.testng.IInvokedMethodListenerpublic void afterInvocation(org.testng.IInvokedMethod method,
org.testng.ITestResult testResult)
afterInvocation in interface org.testng.IInvokedMethodListenerpublic void onConfigurationSuccess(org.testng.ITestResult itr)
onConfigurationSuccess in interface org.testng.IConfigurationListenerpublic void onConfigurationFailure(org.testng.ITestResult itr)
onConfigurationFailure in interface org.testng.IConfigurationListenerpublic void onConfigurationSkip(org.testng.ITestResult itr)
onConfigurationSkip in interface org.testng.IConfigurationListenerprotected java.lang.String getHistoryId(org.testng.ITestNGMethod method,
java.util.List<io.qameta.allure.model.Parameter> parameters)
protected io.qameta.allure.model.Status getStatus(java.lang.Throwable throwable)