@Component(value="tapirAllureExecutionListener") @Order(value=7000) public class AllureExecutionListener extends Object implements ExecutionListener, AttachmentListener
Constructor and Description |
---|
AllureExecutionListener() |
Modifier and Type | Method and Description |
---|---|
void |
attachmentAdded(TestStep testStep,
Attachment attachment)
Called whenever an attachment is added.
|
void |
classFailed(TestClass testClass,
Throwable throwable)
Called when a test class has been finished with an exception.
|
void |
classSkipped(TestClass testClass)
Called when a test class has been skipped.
|
void |
classStarted(TestClass testClass)
Called when a test class has been started.
|
void |
classSucceeded(TestClass testClass)
Called when a test class has been finished successfully
|
void |
executionFailed(ExecutionPlan it,
Throwable throwable)
Called when an execution plan has been finished with an exception.
|
void |
executionStarted(ExecutionPlan it)
Called when an execution plan has been started.
|
void |
executionSucceeded(ExecutionPlan it)
Called when an execution plan has been finished successfully
|
void |
stepFailed(TestStep it,
Throwable throwable)
Called when a test step has been finished with an exception.
|
void |
stepSkipped(TestStep it)
Called when a test step has been skipped.
|
void |
stepStarted(TestStep it)
Called when a test step has been started.
|
void |
stepSucceeded(TestStep it)
Called when a test step has been finished successfully
|
void |
suiteFailed(TestSuite it,
Throwable throwable)
Called when a test suite has been finished with an exception.
|
void |
suiteSkipped(TestSuite it)
Called when a test suite has been skipped.
|
void |
suiteStarted(TestSuite it)
Called when a test suite has been started.
|
void |
suiteSucceeded(TestSuite it)
Called when a test suite has been finished successfully
|
public void executionStarted(ExecutionPlan it)
ExecutionListener
ExecutionListener.executionSucceeded(ExecutionPlan)
or ExecutionListener.executionFailed(ExecutionPlan, Throwable)
will be called after
processing the execution plan.executionStarted
in interface ExecutionListener
it
- the execution plan which has been startedpublic void executionSucceeded(ExecutionPlan it)
ExecutionListener
executionSucceeded
in interface ExecutionListener
it
- the execution plan which has been finished successfullypublic void executionFailed(ExecutionPlan it, Throwable throwable)
ExecutionListener
executionFailed
in interface ExecutionListener
it
- the execution plan which has been finished with an exceptionthrowable
- The occurred exceptionpublic void suiteStarted(TestSuite it)
ExecutionListener
ExecutionListener.suiteSucceeded(TestSuite)
or
ExecutionListener.suiteFailed(TestSuite, Throwable)
will be called after processing the test suite.suiteStarted
in interface ExecutionListener
it
- the test suite which has been startedpublic void suiteSucceeded(TestSuite it)
ExecutionListener
suiteSucceeded
in interface ExecutionListener
it
- the test suite which has been finished successfullypublic void suiteFailed(TestSuite it, Throwable throwable)
ExecutionListener
suiteFailed
in interface ExecutionListener
it
- the test suite which has been finished with an exceptionthrowable
- The occurred exceptionpublic void suiteSkipped(TestSuite it)
ExecutionListener
ExecutionListener.suiteStarted(TestSuite)
has never been
called.suiteSkipped
in interface ExecutionListener
it
- the test suite which has been skippedpublic void classStarted(TestClass testClass)
ExecutionListener
ExecutionListener.classSucceeded(TestClass)
or
ExecutionListener.classFailed(TestClass, Throwable)
will be called after processing the test class.classStarted
in interface ExecutionListener
testClass
- the test class which has been startedpublic void classSucceeded(TestClass testClass)
ExecutionListener
classSucceeded
in interface ExecutionListener
testClass
- the test class which has been finished successfullypublic void classFailed(TestClass testClass, Throwable throwable)
ExecutionListener
classFailed
in interface ExecutionListener
testClass
- the test class which has been finished with an exceptionthrowable
- The occurred exceptionpublic void classSkipped(TestClass testClass)
ExecutionListener
ExecutionListener.classStarted(TestClass)
has never been
called.classSkipped
in interface ExecutionListener
testClass
- the test class which has been skippedpublic void stepStarted(TestStep it)
ExecutionListener
ExecutionListener.stepSucceeded(TestStep)
or
ExecutionListener.stepFailed(TestStep, Throwable)
will be called after processing the test step.stepStarted
in interface ExecutionListener
it
- the test step which has been startedpublic void stepSucceeded(TestStep it)
ExecutionListener
stepSucceeded
in interface ExecutionListener
it
- the test step which has been finished successfullypublic void stepFailed(TestStep it, Throwable throwable)
ExecutionListener
stepFailed
in interface ExecutionListener
it
- the test step which has been finished with an exceptionthrowable
- The occurred exceptionpublic void stepSkipped(TestStep it)
ExecutionListener
ExecutionListener.stepStarted(TestStep)
has never been called.stepSkipped
in interface ExecutionListener
it
- the test step which has been skippedpublic void attachmentAdded(TestStep testStep, Attachment attachment)
AttachmentListener
attachmentAdded
in interface AttachmentListener
testStep
- the current test stepattachment
- The attachment which has been addedCopyright © 2018–2021 b+m Informatik AG. All rights reserved.