Package dev.aherscu.qa.testrail.reporter
Class TestRailReporter
- java.lang.Object
-
- dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ScenarioModel,dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter>
-
- dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter
-
- dev.aherscu.qa.testrail.reporter.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.
-
-
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
-
Constructor Summary
Constructors Modifier Constructor Description TestRailReporter()
protected
TestRailReporter(TestRailReporter.TestRailReporterBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestRailReporter.TestRailReporterBuilder<?,?>
builder()
protected com.samskivert.mustache.Mustache.Compiler
compiler()
protected void
reportGenerated(com.tngtech.jgiven.report.model.ScenarioModel scenarioModel, File reportFile)
protected TestRailReportModel
reportModel(File targetReportFile)
TestRailReporter.TestRailReporterBuilder<?,?>
toBuilder()
String
toString()
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-
Methods inherited from class dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter
applyAttributesFor, generate, readAttributesOf, targetNameFor
-
Methods inherited from class dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter
generateReport, listJGivenReports, prepare, reportFile, template, templateResourceParamFrom
-
-
-
-
Field Detail
-
DEFAULT_TEMPLATE_RESOURCE
public static final String DEFAULT_TEMPLATE_RESOURCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TestRailReporter
protected TestRailReporter(TestRailReporter.TestRailReporterBuilder<?,?> b)
-
TestRailReporter
public TestRailReporter()
-
-
Method Detail
-
compiler
protected com.samskivert.mustache.Mustache.Compiler compiler()
- Overrides:
compiler
in classdev.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 classdev.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 classdev.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 classdev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter
-
builder
public static TestRailReporter.TestRailReporterBuilder<?,?> builder()
-
toBuilder
public TestRailReporter.TestRailReporterBuilder<?,?> toBuilder()
- Overrides:
toBuilder
in classdev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter
-
toString
public String toString()
- Overrides:
toString
in classdev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter
-
-