Class Suite


  • public class Suite
    extends Object
    This class is the suite object in the report generating tool setup. It is responsible for capturing the attributes of a suite and then generate HTML markup accordingly.
    • Method Detail

      • getTests

        public List<Test> getTests()
        Returns a list of Test object in this suite.
        Returns:
        list of Test object in this suite.
      • passed

        public boolean passed()
        Returns a list of passed Test object in this suite.
        Returns:
        list of passed Test object in this suite.
      • createHTMLReports

        public void createHTMLReports​(String templateDir,
                                      String outputDir)
                               throws IOException
        Creates HTML report.
        Parameters:
        templateDir - Template directory.
        outputDir - Output directory where reports are to be created under.
        Throws:
        IOException - if report cannot be created.
      • toHTML

        public String toHTML()
        Returns HTML markup for this object.
        Returns:
        HTML markup for this object.