public abstract class AbstractTestListener extends Object implements org.testng.ITestListener
| Constructor and Description |
|---|
AbstractTestListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onFinish(org.testng.ITestContext context)
Invoked after all the tests have run and all their Configuration methods have been called.
|
void |
onStart(org.testng.ITestContext context)
Invoked after the test class is instantiated and before any configuration method is called.
|
void |
onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
Invoked each time a method fails but has been annotated with successPercentage and this failure still keeps it
within the success percentage requested.
|
void |
onTestFailure(org.testng.ITestResult result)
Invoked each time a test fails.
|
void |
onTestSkipped(org.testng.ITestResult result)
Invoked each time a test is skipped.
|
void |
onTestStart(org.testng.ITestResult result)
Invoked each time before a test will be invoked.
|
void |
onTestSuccess(org.testng.ITestResult result)
Invoked each time a test succeeds.
|
public void onStart(org.testng.ITestContext context)
onStart in interface org.testng.ITestListenercontext - test context containing all the information for a given test run.public void onFinish(org.testng.ITestContext context)
onFinish in interface org.testng.ITestListenercontext - test context containing all the information for a given test run.public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
onTestFailedButWithinSuccessPercentage in interface org.testng.ITestListenerresult - contains information about the run test.public void onTestStart(org.testng.ITestResult result)
ITestResult is only partially filled
with the references to class, method, start millis and status.onTestStart in interface org.testng.ITestListenerresult - the partially filled test result.public void onTestSuccess(org.testng.ITestResult result)
onTestSuccess in interface org.testng.ITestListenerresult - contains information about the run test.public void onTestFailure(org.testng.ITestResult result)
onTestFailure in interface org.testng.ITestListenerresult - contains information about the run test.public void onTestSkipped(org.testng.ITestResult result)
onTestSkipped in interface org.testng.ITestListenerresult - contains information about the run test.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.