|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.testng.listener.AbstractTestListener
public abstract class AbstractTestListener
Understands a base class for TestNG listeners.
Constructor Summary | |
---|---|
AbstractTestListener()
|
Method Summary | |
---|---|
void |
onFinish(ITestContext context)
Invoked after all the tests have run and all their Configuration methods have been called. |
void |
onStart(ITestContext context)
Invoked after the test class is instantiated and before any configuration method is called. |
void |
onTestFailedButWithinSuccessPercentage(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(ITestResult result)
Invoked each time a test fails. |
void |
onTestSkipped(ITestResult result)
Invoked each time a test is skipped. |
void |
onTestStart(ITestResult result)
Invoked each time before a test will be invoked. |
void |
onTestSuccess(ITestResult result)
Invoked each time a test succeeds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTestListener()
Method Detail |
---|
public void onStart(ITestContext context)
onStart
in interface ITestListener
context
- test context containing all the information for a given test run.public void onFinish(ITestContext context)
onFinish
in interface ITestListener
context
- test context containing all the information for a given test run.public void onTestFailedButWithinSuccessPercentage(ITestResult result)
onTestFailedButWithinSuccessPercentage
in interface ITestListener
result
- contains information about the run test.public void onTestStart(ITestResult result)
ITestResult
is only partially filled
with the references to class, method, start millis and status.
onTestStart
in interface ITestListener
result
- the partially filled test result.public void onTestSuccess(ITestResult result)
onTestSuccess
in interface ITestListener
result
- contains information about the run test.public void onTestFailure(ITestResult result)
onTestFailure
in interface ITestListener
result
- contains information about the run test.public void onTestSkipped(ITestResult result)
onTestSkipped
in interface ITestListener
result
- contains information about the run test.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |