Package org.testng.reporters
Class AbstractXmlReporter
- java.lang.Object
-
- org.testng.reporters.AbstractXmlReporter
-
- All Implemented Interfaces:
IReporter,ITestNGListener,ICustomizeXmlReport
- Direct Known Subclasses:
PerSuiteXMLReporter,XMLReporter
public abstract class AbstractXmlReporter extends java.lang.Object implements IReporter, ICustomizeXmlReport
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractXmlReporter.Count
-
Constructor Summary
Constructors Constructor Description AbstractXmlReporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomTagsFor(XMLStringBuffer xmlBuffer, ITestResult testResult)protected AbstractXmlReporter.CountcomputeCountForSuite(ISuite s)java.lang.StringfileName()XMLReporterConfiggetConfig()Get the reporter configuration object.protected static voidsetDurationAttributes(XMLReporterConfig config, java.util.Properties attributes, java.util.Date minStartDate, java.util.Date maxEndDate)protected voidwriteReporterOutput(XMLStringBuffer xmlBuffer)protected voidwriteReporterOutput(XMLStringBuffer xmlBuffer, java.util.List<java.lang.String> output)protected voidwriteSuite(XMLStringBuffer rootBuffer, ISuite suite)protected java.util.PropertieswriteSummaryCount(AbstractXmlReporter.Count count)-
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
-
Methods inherited from interface org.testng.ITestNGListener
isEnabled
-
-
-
-
Method Detail
-
fileName
public java.lang.String fileName()
-
getConfig
public XMLReporterConfig 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
public void addCustomTagsFor(XMLStringBuffer xmlBuffer, ITestResult testResult)
- Specified by:
addCustomTagsForin interfaceICustomizeXmlReport- Parameters:
xmlBuffer- - AnXMLStringBufferobject that represents the buffer to be used.testResult- - AnITestResultobject that represents a test method's result.
-
writeReporterOutput
protected final void writeReporterOutput(XMLStringBuffer xmlBuffer)
-
writeReporterOutput
protected final void writeReporterOutput(XMLStringBuffer xmlBuffer, java.util.List<java.lang.String> output)
-
writeSuite
protected final void writeSuite(XMLStringBuffer rootBuffer, ISuite suite)
-
setDurationAttributes
protected static void setDurationAttributes(XMLReporterConfig config, java.util.Properties attributes, java.util.Date minStartDate, java.util.Date maxEndDate)
-
writeSummaryCount
protected final java.util.Properties writeSummaryCount(AbstractXmlReporter.Count count)
-
computeCountForSuite
protected final AbstractXmlReporter.Count computeCountForSuite(ISuite s)
-
-