Package org.testng.reporters
Class XMLReporter
java.lang.Object
org.testng.reporters.AbstractXmlReporter
org.testng.reporters.XMLReporter
- All Implemented Interfaces:
IReporter
,ITestNGListener
,ICustomizeXmlReport
The main entry for the XML generation operation
-
Nested Class Summary
Nested classes/interfaces inherited from class org.testng.reporters.AbstractXmlReporter
AbstractXmlReporter.Count
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDurationAttributes
(XMLReporterConfig config, Properties attributes, Date minStartDate, Date maxEndDate) Deprecated.void
Generate a report for the given suites into the specified output directory.Methods inherited from class org.testng.reporters.AbstractXmlReporter
addCustomTagsFor, computeCountForSuite, fileName, getConfig, setDurationAttributes, writeReporterOutput, writeReporterOutput, writeSuite, writeSummaryCount
-
Constructor Details
-
XMLReporter
public XMLReporter()
-
-
Method Details
-
generateReport
Description copied from interface:IReporter
Generate a report for the given suites into the specified output directory.- Parameters:
xmlSuites
- The list ofXmlSuite
suites
- The list ofISuite
outputDirectory
- The output directory
-
addDurationAttributes
@Deprecated public static void addDurationAttributes(XMLReporterConfig config, Properties attributes, Date minStartDate, Date maxEndDate) Deprecated.- This method stands deprecated as of TestNG7.8.0
Add started-at, finished-at and duration-ms attributes to the<suite>
tag- Parameters:
config
- The reporter configattributes
- The propertiesminStartDate
- The minimum start datemaxEndDate
- The maximum end date
-
7.8.0
Add started-at, finished-at and duration-ms attributes to the<suite>
tag