Class TestRailReporter

  • All Implemented Interfaces:
    org.testng.IReporter, org.testng.ITestNGListener

    public class TestRailReporter
    extends dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter
    Per method test reporter uploading results with screenshot attachments to TestRail.
    See Also:
    support for TestNG Listener configuration
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  TestRailReporter.TestRailReporterBuilder<C extends TestRailReporter,​B extends TestRailReporter.TestRailReporterBuilder<C,​B>>  
      • Nested classes/interfaces inherited from class dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter

        dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter.QaJGivenPerMethodReporterBuilder<C extends dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter,​B extends dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter.QaJGivenPerMethodReporterBuilder<C,​B>>
      • Nested classes/interfaces inherited from class dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter

        dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter.AbstractQaJgivenReporterBuilder<M extends Object,​T extends dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter<?,​?>,​C extends dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter<M,​T>,​B extends dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter.AbstractQaJgivenReporterBuilder<M,​T,​C,​B>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String DEFAULT_TEMPLATE_RESOURCE  
      • Fields inherited from class dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter

        datePattern, debug, DEFAULT_DATE_PATTERN, DEFAULT_REFERENCE_TAG, DEFAULT_SCREENSHOT_SCALE, outputDirectory, pdf, referenceTag, screenshotScale, sourceDirectory, templateResource
    • Method Detail

      • compiler

        protected com.samskivert.mustache.Mustache.Compiler compiler()
        Overrides:
        compiler in class dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ScenarioModel,​dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter>
      • reportModel

        protected TestRailReportModel reportModel​(File targetReportFile)
        Overrides:
        reportModel in class dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ScenarioModel,​dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter>
      • with

        protected TestRailReporter with​(org.testng.xml.XmlSuite xmlSuite)
        Builds a new reporter configured with additional TestNG XML suite parameters:
        testRailRunId
        the TestRail Run to report to
        testRailUrl
        the TestRail location
        Overrides:
        with in class dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter
        Parameters:
        xmlSuite - TestNG XML suite
        Returns:
        reporter configured
      • reportGenerated

        protected void reportGenerated​(com.tngtech.jgiven.report.model.ScenarioModel scenarioModel,
                                       File reportFile)
        Overrides:
        reportGenerated in class dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter
      • toString

        public String toString()
        Overrides:
        toString in class dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter