Class XMLReporter

    • Constructor Detail

      • XMLReporter

        public XMLReporter()
    • Method Detail

      • generateReport

        public void generateReport​(java.util.List<XmlSuite> xmlSuites,
                                   java.util.List<ISuite> suites,
                                   java.lang.String outputDirectory)
        Description copied from interface: IReporter
        Generate a report for the given suites into the specified output directory.
        Specified by:
        generateReport in interface IReporter
        Parameters:
        xmlSuites - The list of XmlSuite
        suites - The list of ISuite
        outputDirectory - The output directory
      • fileName

        public java.lang.String fileName()
      • addDurationAttributes

        public static void addDurationAttributes​(XMLReporterConfig config,
                                                 java.util.Properties attributes,
                                                 java.util.Date minStartDate,
                                                 java.util.Date maxEndDate)
        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
      • 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.

        Specified by:
        getConfig in interface IReporter
        Returns:
        reporter configuration object