Class LegacyXmlReportGeneratingListener
- All Implemented Interfaces:
TestExecutionListener
LegacyXmlReportGeneratingListener is a TestExecutionListener that
generates a separate XML report for each root
in the TestPlan.
Note that the generated XML format is compatible with the legacy de facto standard for JUnit 4 based test reports that was made popular by the Ant build system.
- Since:
- 1.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecutionFinished(TestIdentifier testIdentifier, TestExecutionResult result) Called when the execution of a leaf or subtree of theTestPlanhas finished, regardless of the outcome.voidexecutionSkipped(TestIdentifier testIdentifier, String reason) Called when the execution of a leaf or subtree of theTestPlanhas been skipped.voidexecutionStarted(TestIdentifier testIdentifier) Called when the execution of a leaf or subtree of theTestPlanis about to be started.voidreportingEntryPublished(TestIdentifier testIdentifier, ReportEntry entry) Called when additional test reporting data has been published for the suppliedTestIdentifier.voidtestPlanExecutionFinished(TestPlan testPlan) Called when the execution of theTestPlanhas finished, after all tests have been executed.voidtestPlanExecutionStarted(TestPlan testPlan) Called when the execution of theTestPlanhas started, before any test has been executed.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TestExecutionListener
dynamicTestRegistered, fileEntryPublished
-
Constructor Details
-
LegacyXmlReportGeneratingListener
-
-
Method Details
-
testPlanExecutionStarted
Description copied from interface:TestExecutionListenerCalled when the execution of theTestPlanhas started, before any test has been executed.Called from the same thread as
TestExecutionListener.testPlanExecutionFinished(TestPlan).- Specified by:
testPlanExecutionStartedin interfaceTestExecutionListener- Parameters:
testPlan- describes the tree of tests about to be executed
-
testPlanExecutionFinished
Description copied from interface:TestExecutionListenerCalled when the execution of theTestPlanhas finished, after all tests have been executed.Called from the same thread as
TestExecutionListener.testPlanExecutionStarted(TestPlan).- Specified by:
testPlanExecutionFinishedin interfaceTestExecutionListener- Parameters:
testPlan- describes the tree of tests that have been executed
-
executionSkipped
Description copied from interface:TestExecutionListenerCalled when the execution of a leaf or subtree of theTestPlanhas been skipped.The
TestIdentifiermay represent a test or a container. In the case of a container, no listener methods will be called for any of its descendants.A skipped test or subtree of tests will never be reported as started or finished.
- Specified by:
executionSkippedin interfaceTestExecutionListener- Parameters:
testIdentifier- the identifier of the skipped test or containerreason- a human-readable message describing why the execution has been skipped
-
executionStarted
Description copied from interface:TestExecutionListenerCalled when the execution of a leaf or subtree of theTestPlanis about to be started.The
TestIdentifiermay represent a test or a container.This method will only be called if the test or container has not been skipped.
This method will be called for a container
TestIdentifierbefore starting or skipping any of its children.- Specified by:
executionStartedin interfaceTestExecutionListener- Parameters:
testIdentifier- the identifier of the started test or container
-
reportingEntryPublished
Description copied from interface:TestExecutionListenerCalled when additional test reporting data has been published for the suppliedTestIdentifier.Can be called at any time during the execution of a test plan.
- Specified by:
reportingEntryPublishedin interfaceTestExecutionListener- Parameters:
testIdentifier- describes the test or container to which the entry pertainsentry- the publishedReportEntry
-
executionFinished
Description copied from interface:TestExecutionListenerCalled when the execution of a leaf or subtree of theTestPlanhas finished, regardless of the outcome.The
TestIdentifiermay represent a test or a container.This method will only be called if the test or container has not been skipped.
This method will be called for a container
TestIdentifierafter all of its children have been skipped or have finished.The
TestExecutionResultdescribes the result of the execution for the suppliedTestIdentifier. The result does not include or aggregate the results of its children. For example, a container with a failing test will be reported asSUCCESSFULeven if one or more of its children are reported asFAILED.- Specified by:
executionFinishedin interfaceTestExecutionListener- Parameters:
testIdentifier- the identifier of the finished test or containerresult- the (unaggregated) result of the execution for the suppliedTestIdentifier- See Also:
-