Top Inners Fields Constructors Methods
org.testng.reporters

public abstract Class AbstractXmlReporter

extends Object
implements IReporter, ICustomizeXmlReport
Class Inheritance
All Implemented Interfaces
org.testng.reporters.ICustomizeXmlReport, org.testng.IReporter, org.testng.ITestNGListener
Known Direct Subclasses
org.testng.reporters.PerSuiteXMLReporter, org.testng.reporters.XMLReporter
Imports
java.io.File, java.util.Collection, .Date, .LinkedHashSet, .List, .Map, .Properties, .Set, org.testng.IReporter, .ISuite, .ISuiteResult, .ITestContext, .ITestNGMethod, .ITestResult, .Reporter, org.testng.internal.Utils, org.testng.util.TimeUtils

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final XMLReporterConfig

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addCustomTagsFor(XMLStringBuffer
- An XMLStringBuffer object that represents the buffer to be used.
xmlBuffer
,
ITestResult
- An ITestResult object that represents a test method's result.
testResult
)

Implements org.testng.reporters.ICustomizeXmlReport.addCustomTagsFor.

protected final AbstractXmlReporter.Count
public String
public XMLReporterConfig
getConfig()

Overrides default org.testng.IReporter.getConfig.

Get the reporter configuration object.
private Properties
private Set<ITestNGMethod>
private File
protected static void
setDurationAttributes(XMLReporterConfig config, Properties attributes, Date minStartDate, Date maxEndDate)

protected final void
protected final void
protected final void
writeSuite(XMLStringBuffer rootBuffer, ISuite suite)

private void
private void
private void
writeSuiteToFile(File suiteFile, ISuite suite)

protected final Properties
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configback to summary
private final XMLReporterConfig config

Constructor Detail

AbstractXmlReporterback to summary
public AbstractXmlReporter()

Method Detail

addCustomTagsForback to summary
public void addCustomTagsFor(XMLStringBuffer xmlBuffer, ITestResult testResult)

Implements org.testng.reporters.ICustomizeXmlReport.addCustomTagsFor.

Parameters
xmlBuffer:XMLStringBuffer

Doc from org.testng.reporters.ICustomizeXmlReport.addCustomTagsFor.

- An XMLStringBuffer object that represents the buffer to be used.

testResult:ITestResult

Doc from org.testng.reporters.ICustomizeXmlReport.addCustomTagsFor.

- An ITestResult object that represents a test method's result.

Annotations
@Override
computeCountForSuiteback to summary
protected final AbstractXmlReporter.Count computeCountForSuite(ISuite s)
fileNameback to summary
public String fileName()
getConfigback to summary
public XMLReporterConfig getConfig()

Overrides default org.testng.IReporter.getConfig.

Doc from org.testng.IReporter.getConfig.

Get the reporter configuration object.

Note

Reporter configuration objects must adhere to the JavaBean object conventions, providing getter and setter methods that conform to standard naming rules. This enables org.testng.internal.ReporterConfig to serialize, deserialize, and instantiate the reporter.

Returns:XMLReporterConfig

reporter configuration object

Annotations
@Override
getSuiteAttributesback to summary
private Properties getSuiteAttributes(ISuite suite)
getUniqueMethodSetback to summary
private Set<ITestNGMethod> getUniqueMethodSet(Collection<ITestNGMethod> methods)
referenceSuiteback to summary
private File referenceSuite(XMLStringBuffer xmlBuffer, ISuite suite)
setDurationAttributesback to summary
protected static void setDurationAttributes(XMLReporterConfig config, Properties attributes, Date minStartDate, Date maxEndDate)
writeReporterOutputback to summary
protected final void writeReporterOutput(XMLStringBuffer xmlBuffer)
writeReporterOutputback to summary
protected final void writeReporterOutput(XMLStringBuffer xmlBuffer, List<String> output)
writeSuiteback to summary
protected final void writeSuite(XMLStringBuffer rootBuffer, ISuite suite)
writeSuiteGroupsback to summary
private void writeSuiteGroups(XMLStringBuffer xmlBuffer, ISuite suite)
writeSuiteToBufferback to summary
private void writeSuiteToBuffer(XMLStringBuffer xmlBuffer, ISuite suite)
writeSuiteToFileback to summary
private void writeSuiteToFile(File suiteFile, ISuite suite)
writeSummaryCountback to summary
protected final Properties writeSummaryCount(AbstractXmlReporter.Count count)
org.testng.reporters back to summary

public Class AbstractXmlReporter.Count

extends Object
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private int
private int
private int
private int
private int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

failedback to summary
private int failed
ignoredback to summary
private int ignored
passedback to summary
private int passed
retriedback to summary
private int retried
skippedback to summary
private int skipped

Constructor Detail

Countback to summary
private Count(AbstractXmlReporter.Count.Builder builder)

Method Detail

addback to summary
public void add(AbstractXmlReporter.Count count)
totalback to summary
public int total()
org.testng.reporters back to summary

public final Class AbstractXmlReporter.Count.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private int
private int
private int
private int
private int

Constructor Summary

AccessConstructor and Description
private

Field Detail

failedback to summary
private int failed
ignoredback to summary
private int ignored
passedback to summary
private int passed
retriedback to summary
private int retried
skippedback to summary
private int skipped

Constructor Detail

Builderback to summary
private Builder()

Method Detail

buildback to summary
public AbstractXmlReporter.Count build()
builderback to summary
public static AbstractXmlReporter.Count.Builder builder()
withFailedback to summary
public AbstractXmlReporter.Count.Builder withFailed(int val)
withIgnoredback to summary
public AbstractXmlReporter.Count.Builder withIgnored(int val)
withPassedback to summary
public AbstractXmlReporter.Count.Builder withPassed(int val)
withRetriedback to summary
public AbstractXmlReporter.Count.Builder withRetried(int val)
withSkippedback to summary
public AbstractXmlReporter.Count.Builder withSkipped(int val)