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 class
AbstractXmlReporter.Count
-
Constructor Summary
Constructors Constructor Description AbstractXmlReporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCustomTagsFor(XMLStringBuffer xmlBuffer, ITestResult testResult)
protected AbstractXmlReporter.Count
computeCountForSuite(ISuite s)
java.lang.String
fileName()
XMLReporterConfig
getConfig()
Get the reporter configuration object.protected static void
setDurationAttributes(XMLReporterConfig config, java.util.Properties attributes, java.util.Date minStartDate, java.util.Date maxEndDate)
protected void
writeReporterOutput(XMLStringBuffer xmlBuffer)
protected void
writeReporterOutput(XMLStringBuffer xmlBuffer, java.util.List<java.lang.String> output)
protected void
writeSuite(XMLStringBuffer rootBuffer, ISuite suite)
protected java.util.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
-
-
-
-
Method Detail
-
fileName
public java.lang.String fileName()
-
getConfig
public XMLReporterConfig 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
public void addCustomTagsFor(XMLStringBuffer xmlBuffer, ITestResult testResult)
- 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
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, XMLStringBuffer rootBuffer)
-
computeCountForSuite
protected final AbstractXmlReporter.Count computeCountForSuite(ISuite s)
-
-