Class SuiteHTMLReporter

  • All Implemented Interfaces:
    IReporter, ITestNGListener

    public class SuiteHTMLReporter
    extends java.lang.Object
    implements IReporter
    This class implements an HTML reporter for suites.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String generateOutputDirectoryName​(java.lang.String outputDirectory)
      Overridable by subclasses to create different directory names (e.g.
      void generateReport​(java.util.List<XmlSuite> xmlSuites, java.util.List<ISuite> suites, java.lang.String outputDirectory)
      Generate a report for the given suites into the specified output directory.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SuiteHTMLReporter

        public SuiteHTMLReporter()
    • 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
      • generateOutputDirectoryName

        protected java.lang.String generateOutputDirectoryName​(java.lang.String outputDirectory)
        Overridable by subclasses to create different directory names (e.g. with timestamps).
        Parameters:
        outputDirectory - the output directory specified by the user
        Returns:
        the name of the output directory of the report