Package org.testng.reporters
Class TextReporter
java.lang.Object
org.testng.reporters.TextReporter
- All Implemented Interfaces:
ITestListener
,ITestNGListener
A simple reporter that collects the results and prints them on standard out.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
logExceptions
(String status, List<ITestResult> results) private void
private void
logResult
(String status, String name, String description, String stackTrace, Object[] params, Class<?>[] paramTypes) private void
logResult
(String status, ITestResult tr, String stackTrace) private void
logResults
(ITestContext context) void
onFinish
(ITestContext context) Invoked after all the test methods belonging to the classes inside the <test> tag have run and all their Configuration methods have been called.private static List<ITestNGMethod>
resultsToMethods
(Collection<ITestResult> results) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.ITestListener
onStart, onTestFailedButWithinSuccessPercentage, onTestFailedWithTimeout, onTestFailure, onTestSkipped, onTestStart, onTestSuccess
-
Field Details
-
LINE
- See Also:
-
m_verbose
private final int m_verbose -
m_testName
-
-
Constructor Details
-
TextReporter
-
-
Method Details
-
onFinish
Description copied from interface:ITestListener
Invoked after all the test methods belonging to the classes inside the <test> tag have run and all their Configuration methods have been called.- Specified by:
onFinish
in interfaceITestListener
- Parameters:
context
- The test context
-
resultsToMethods
-
logResults
-
logResult
-
logExceptions
-
logResult
-
logResult
-