public class XMLReporter extends Object implements IReporter, ICustomizeXmlReport
| Constructor and Description |
|---|
XMLReporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomTagsFor(XMLStringBuffer xmlBuffer,
ITestResult testResult) |
static void |
addDurationAttributes(XMLReporterConfig config,
Properties attributes,
Date minStartDate,
Date maxEndDate)
Add started-at, finished-at and duration-ms attributes to the
<suite> tag |
String |
fileName() |
void |
generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory)
Generate a report for the given suites into the specified output directory.
|
XMLReporterConfig |
getConfig()
Get the reporter configuration object.
|
public void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory)
IReportergenerateReport in interface IReporterxmlSuites - The list of XmlSuitesuites - The list of ISuiteoutputDirectory - The output directorypublic void addCustomTagsFor(XMLStringBuffer xmlBuffer, ITestResult testResult)
addCustomTagsFor in interface ICustomizeXmlReportxmlBuffer - - An XMLStringBuffer object that represents the buffer to be used.testResult - - An ITestResult object that represents a test method's result.public String fileName()
public static void addDurationAttributes(XMLReporterConfig config, Properties attributes, Date minStartDate, Date maxEndDate)
<suite> tagconfig - The reporter configattributes - The propertiesminStartDate - The minimum start datemaxEndDate - The maximum end datepublic XMLReporterConfig getConfig()
IReporterNOTE: 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.
Copyright © 2025. All rights reserved.