Class TestRailReportModel


  • public class TestRailReportModel
    extends dev.aherscu.qa.jgiven.reporter.QaJGivenReportModel<com.tngtech.jgiven.report.model.ScenarioModel>
    Adds screenshot manipulation functionality.
    See Also:
    saveScreenshot
    • Field Detail

      • outputDirectory

        public final File outputDirectory
      • saveScreenshot

        public final com.samskivert.mustache.Mustache.Lambda saveScreenshot
    • Method Detail

      • saveScreenshot

        public void saveScreenshot​(com.samskivert.mustache.Template.Fragment frag,
                                   Writer out)
        To be called from Mustache template for saving screenshots as separate PNG files, in a directory matching the name of the test report file.

        These are later picked up by the TestRailReporter and attached to the test result in TestRail.

        Parameters:
        frag - Mustache fragment to process, assumed to be a screenshot in Base64 PNG format
        out - Mustache output stream; will be written the screenshot file name (currently, a hex representation of its contents hash)