Top Description Fields Constructors Methods
org.testng.reporters

public Class TextReporter

extends Object
implements ITestListener
Class Inheritance
All Implemented Interfaces
org.testng.ITestListener, org.testng.ITestNGListener
Static Imports
org.testng.internal.Utils.isStringNotBlank

A simple reporter that collects the results and prints them on standard out.

Field Summary

Modifier and TypeField and Description
private static final String
private final String
private final int

Constructor Summary

AccessConstructor and Description
public
TextReporter(String testName, int verbose)

Method Summary

Modifier and TypeMethod and Description
private void
private void
logResult(String status, ITestResult tr, String stackTrace)

private void
logResult(String status, String message)

private void
logResult(String status, String name, String description, CustomAttribute[] attributes, String stackTrace, Object[] params, Class<?>[] paramTypes)

private void
public void
onFinish(ITestContext
The test context
context
)

Overrides default org.testng.ITestListener.onFinish.

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>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LINEback to summary
private static final String LINE
m_testNameback to summary
private final String m_testName
m_verboseback to summary
private final int m_verbose

Constructor Detail

TextReporterback to summary
public TextReporter(String testName, int verbose)

Method Detail

logExceptionsback to summary
private void logExceptions(String status, List<ITestResult> results)
logResultback to summary
private void logResult(String status, ITestResult tr, String stackTrace)
logResultback to summary
private void logResult(String status, String message)
logResultback to summary
private void logResult(String status, String name, String description, CustomAttribute[] attributes, String stackTrace, Object[] params, Class<?>[] paramTypes)
logResultsback to summary
private void logResults(ITestContext context)
onFinishback to summary
public void onFinish(ITestContext context)

Overrides default org.testng.ITestListener.onFinish.

Doc from org.testng.ITestListener.onFinish.

Invoked after all the test methods belonging to the classes inside the <test> tag have run and all their Configuration methods have been called.

Parameters
context:ITestContext

The test context

Annotations
@Override
resultsToMethodsback to summary
private static List<ITestNGMethod> resultsToMethods(Collection<ITestResult> results)