Class HtmlReport


  • public class HtmlReport
    extends Object
    • Constructor Detail

      • HtmlReport

        public HtmlReport​(FilePath reportFolder,
                          String jobId,
                          String reportTitle)
                   throws IOException,
                          InterruptedException
        Constructor.
        Parameters:
        reportFolder - The reportFolder where the report file is/should be.
        jobId - The id of the job. Used in the report filename.
        reportTitle - The title of this report. It is used as the tab title when viewing the report.
        Throws:
        IOException - If creating missing folders fails.
        InterruptedException - If creating missing folders is interrupted.
    • Method Detail

      • getResultDirectory

        public String getResultDirectory()
        Get the path of the result directory, relative to workspace.
        Returns:
        Path to result directory. Empty string if reports reside in the root folder of workspace.
      • getFileName

        public String getFileName()
        Get the filename of this report.
        Returns:
        Filename without path.
      • getReportTitle

        public String getReportTitle()
        Get the title of this report.
        Returns:
        Report title.