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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomTagsFor(XMLStringBuffer xmlBuffer, ITestResult testResult) protected final AbstractXmlReporter.CountfileName()Get the reporter configuration object.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) protected final PropertiesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IReporter
generateReportMethods inherited from interface ITestNGListener
isEnabled
-
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
-
setDurationAttributes
protected static void setDurationAttributes(XMLReporterConfig config, Properties attributes, Date minStartDate, Date maxEndDate) -
writeSummaryCount
-
computeCountForSuite
-