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 voidlogExceptions(String status, List<ITestResult> results) private voidprivate voidlogResult(String status, String name, String description, CustomAttribute[] attributes, String stackTrace, Object[] params, Class<?>[] paramTypes) private voidlogResult(String status, ITestResult tr, String stackTrace) private voidlogResults(ITestContext context) voidonFinish(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, waitMethods 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:ITestListenerInvoked 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:
onFinishin interfaceITestListener- Parameters:
context- The test context
-
resultsToMethods
-
logResults
-
logResult
-
logExceptions
-
logResult
-
logResult
-