Package dev.aherscu.qa.jgiven.reporter
Class QaJGivenPerMethodReporter
- java.lang.Object
-
- dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ScenarioModel,QaJGivenPerMethodReporter>
-
- dev.aherscu.qa.jgiven.reporter.QaJGivenPerMethodReporter
-
- All Implemented Interfaces:
org.testng.IReporter
,org.testng.ITestNGListener
public class QaJGivenPerMethodReporter extends AbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ScenarioModel,QaJGivenPerMethodReporter>
Per test method reporter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QaJGivenPerMethodReporter.QaJGivenPerMethodReporterBuilder<C extends QaJGivenPerMethodReporter,B extends QaJGivenPerMethodReporter.QaJGivenPerMethodReporterBuilder<C,B>>
-
Nested classes/interfaces inherited from class dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter
AbstractQaJgivenReporter.AbstractQaJgivenReporterBuilder<M,T extends AbstractQaJgivenReporter<?,?>,C extends AbstractQaJgivenReporter<M,T>,B extends 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
-
-
Constructor Summary
Constructors Modifier Constructor Description QaJGivenPerMethodReporter()
protected
QaJGivenPerMethodReporter(QaJGivenPerMethodReporter.QaJGivenPerMethodReporterBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyAttributesFor(com.tngtech.jgiven.report.model.ScenarioModel scenarioModel, File reportFile)
static QaJGivenPerMethodReporter.QaJGivenPerMethodReporterBuilder<?,?>
builder()
void
generate()
Generates a report for each test method (scenario in JGiven terms).static Map<String,String>
readAttributesOf(File reportFile)
protected void
reportGenerated(com.tngtech.jgiven.report.model.ScenarioModel scenarioModel, File reportFile)
protected String
targetNameFor(com.tngtech.jgiven.report.model.ScenarioModel scenarioModel)
QaJGivenPerMethodReporter.QaJGivenPerMethodReporterBuilder<?,?>
toBuilder()
String
toString()
protected QaJGivenPerMethodReporter
with(org.testng.xml.XmlSuite xmlSuite)
Builds a new reporter configured with additional TestNG XML suite parameters.-
Methods inherited from class dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter
compiler, generateReport, listJGivenReports, prepare, reportFile, reportModel, template, templateResourceParamFrom
-
-
-
-
Field Detail
-
DEFAULT_TEMPLATE_RESOURCE
public static final String DEFAULT_TEMPLATE_RESOURCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QaJGivenPerMethodReporter
protected QaJGivenPerMethodReporter(QaJGivenPerMethodReporter.QaJGivenPerMethodReporterBuilder<?,?> b)
-
QaJGivenPerMethodReporter
public QaJGivenPerMethodReporter()
-
-
Method Detail
-
with
protected QaJGivenPerMethodReporter with(org.testng.xml.XmlSuite xmlSuite)
Builds a new reporter configured with additional TestNG XML suite parameters. Currently, onlytemplateResource
is recognized.- Overrides:
with
in classAbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ScenarioModel,QaJGivenPerMethodReporter>
- Parameters:
xmlSuite
- TestNG XML suite- Returns:
- reporter configured
-
applyAttributesFor
protected void applyAttributesFor(com.tngtech.jgiven.report.model.ScenarioModel scenarioModel, File reportFile)
-
generate
public void generate()
Generates a report for each test method (scenario in JGiven terms).- Specified by:
generate
in classAbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ScenarioModel,QaJGivenPerMethodReporter>
-
reportGenerated
protected void reportGenerated(com.tngtech.jgiven.report.model.ScenarioModel scenarioModel, File reportFile)
-
targetNameFor
protected String targetNameFor(com.tngtech.jgiven.report.model.ScenarioModel scenarioModel)
-
builder
public static QaJGivenPerMethodReporter.QaJGivenPerMethodReporterBuilder<?,?> builder()
-
toBuilder
public QaJGivenPerMethodReporter.QaJGivenPerMethodReporterBuilder<?,?> toBuilder()
- Specified by:
toBuilder
in classAbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ScenarioModel,QaJGivenPerMethodReporter>
-
toString
public String toString()
- Overrides:
toString
in classAbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ScenarioModel,QaJGivenPerMethodReporter>
-
-