Package org.testng.reporters
Class AbstractXmlReporter
java.lang.Object
org.testng.reporters.AbstractXmlReporter
- All Implemented Interfaces:
IReporter
,ITestNGListener
,ICustomizeXmlReport
- Direct Known Subclasses:
PerSuiteXMLReporter
,XMLReporter
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomTagsFor
(XMLStringBuffer xmlBuffer, ITestResult testResult) protected final AbstractXmlReporter.Count
fileName()
Get the reporter configuration object.private Properties
getSuiteAttributes
(ISuite suite) private Set
<ITestNGMethod> getUniqueMethodSet
(Collection<ITestNGMethod> methods) private File
referenceSuite
(XMLStringBuffer xmlBuffer, ISuite suite) protected static void
setDurationAttributes
(XMLReporterConfig config, Properties attributes, Date minStartDate, Date maxEndDate) protected final void
writeReporterOutput
(XMLStringBuffer xmlBuffer) protected final void
writeReporterOutput
(XMLStringBuffer xmlBuffer, List<String> output) protected final void
writeSuite
(XMLStringBuffer rootBuffer, ISuite suite) private void
writeSuiteGroups
(XMLStringBuffer xmlBuffer, ISuite suite) private void
writeSuiteToBuffer
(XMLStringBuffer xmlBuffer, ISuite suite) private void
writeSuiteToFile
(File suiteFile, ISuite suite) protected final Properties
writeSummaryCount
(AbstractXmlReporter.Count count, XMLStringBuffer rootBuffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.IReporter
generateReport
-
Field Details
-
config
-
-
Constructor Details
-
AbstractXmlReporter
public AbstractXmlReporter()
-
-
Method Details
-
fileName
-
getConfig
Description copied from interface:IReporter
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
ReporterConfig
to serialize, deserialize, and instantiate the reporter. -
addCustomTagsFor
- Specified by:
addCustomTagsFor
in interfaceICustomizeXmlReport
- Parameters:
xmlBuffer
- - AnXMLStringBuffer
object that represents the buffer to be used.testResult
- - AnITestResult
object that represents a test method's result.
-
writeReporterOutput
-
writeReporterOutput
-
writeSuite
-
writeSuiteToFile
-
referenceSuite
-
writeSuiteToBuffer
-
getUniqueMethodSet
-
writeSuiteGroups
-
getSuiteAttributes
-
setDurationAttributes
protected static void setDurationAttributes(XMLReporterConfig config, Properties attributes, Date minStartDate, Date maxEndDate) -
writeSummaryCount
protected final Properties writeSummaryCount(AbstractXmlReporter.Count count, XMLStringBuffer rootBuffer) -
computeCountForSuite
-