Class XMLReporter

All Implemented Interfaces:
IReporter, ITestNGListener, ICustomizeXmlReport

public class XMLReporter extends AbstractXmlReporter
The main entry for the XML generation operation
  • Constructor Details

    • XMLReporter

      public XMLReporter()
  • Method Details

    • generateReport

      public void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory)
      Description copied from interface: IReporter
      Generate a report for the given suites into the specified output directory.
      Parameters:
      xmlSuites - The list of XmlSuite
      suites - The list of ISuite
      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 TestNG 7.8.0 Add started-at, finished-at and duration-ms attributes to the <suite> tag
      Parameters:
      config - The reporter config
      attributes - The properties
      minStartDate - The minimum start date
      maxEndDate - The maximum end date