Package dev.aherscu.qa.jgiven.reporter
Class QaJGivenPerClassReporter
- java.lang.Object
-
- dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ReportModel,QaJGivenPerClassReporter>
-
- dev.aherscu.qa.jgiven.reporter.QaJGivenPerClassReporter
-
- All Implemented Interfaces:
org.testng.IReporter
,org.testng.ITestNGListener
public class QaJGivenPerClassReporter extends AbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ReportModel,QaJGivenPerClassReporter>
Per test class reporter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QaJGivenPerClassReporter.QaJGivenPerClassReporterBuilder<C extends QaJGivenPerClassReporter,B extends QaJGivenPerClassReporter.QaJGivenPerClassReporterBuilder<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 QaJGivenPerClassReporter()
protected
QaJGivenPerClassReporter(QaJGivenPerClassReporter.QaJGivenPerClassReporterBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QaJGivenPerClassReporter.QaJGivenPerClassReporterBuilder<?,?>
builder()
void
generate()
Generates a report for each test class.QaJGivenPerClassReporter.QaJGivenPerClassReporterBuilder<?,?>
toBuilder()
String
toString()
protected QaJGivenPerClassReporter
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
-
QaJGivenPerClassReporter
protected QaJGivenPerClassReporter(QaJGivenPerClassReporter.QaJGivenPerClassReporterBuilder<?,?> b)
-
QaJGivenPerClassReporter
public QaJGivenPerClassReporter()
-
-
Method Detail
-
with
protected QaJGivenPerClassReporter 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.ReportModel,QaJGivenPerClassReporter>
- Parameters:
xmlSuite
- TestNG XML suite- Returns:
- reporter configured
-
generate
public void generate()
Generates a report for each test class. It is assumed that JGiven generates a JSON file for each test class.- Specified by:
generate
in classAbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ReportModel,QaJGivenPerClassReporter>
-
builder
public static QaJGivenPerClassReporter.QaJGivenPerClassReporterBuilder<?,?> builder()
-
toBuilder
public QaJGivenPerClassReporter.QaJGivenPerClassReporterBuilder<?,?> toBuilder()
- Specified by:
toBuilder
in classAbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ReportModel,QaJGivenPerClassReporter>
-
toString
public String toString()
- Overrides:
toString
in classAbstractQaJgivenReporter<com.tngtech.jgiven.report.model.ReportModel,QaJGivenPerClassReporter>
-
-