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 TypeMethodDescriptionvoidaddCustomTagsFor(XMLStringBuffer xmlBuffer, ITestResult testResult) protected final AbstractXmlReporter.CountfileName()Get the reporter configuration object.private PropertiesgetSuiteAttributes(ISuite suite) private Set<ITestNGMethod> getUniqueMethodSet(Collection<ITestNGMethod> methods) private FilereferenceSuite(XMLStringBuffer xmlBuffer, ISuite suite) protected static voidsetDurationAttributes(XMLReporterConfig config, Properties attributes, Date minStartDate, Date maxEndDate) protected final voidwriteReporterOutput(XMLStringBuffer xmlBuffer) protected final voidwriteReporterOutput(XMLStringBuffer xmlBuffer, List<String> output) protected final voidwriteSuite(XMLStringBuffer rootBuffer, ISuite suite) private voidwriteSuiteGroups(XMLStringBuffer xmlBuffer, ISuite suite) private voidwriteSuiteToBuffer(XMLStringBuffer xmlBuffer, ISuite suite) private voidwriteSuiteToFile(File suiteFile, ISuite suite) protected final PropertieswriteSummaryCount(AbstractXmlReporter.Count count, XMLStringBuffer rootBuffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.testng.IReporter
generateReport
-
Field Details
-
config
-
-
Constructor Details
-
AbstractXmlReporter
public AbstractXmlReporter()
-
-
Method Details
-
fileName
-
getConfig
Description copied from interface:IReporterGet 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
ReporterConfigto serialize, deserialize, and instantiate the reporter. -
addCustomTagsFor
- Specified by:
addCustomTagsForin interfaceICustomizeXmlReport- Parameters:
xmlBuffer- - AnXMLStringBufferobject that represents the buffer to be used.testResult- - AnITestResultobject 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
-