Package dev.aherscu.qa.jgiven.reporter
Class QaJGivenReporter
- java.lang.Object
-
- dev.aherscu.qa.jgiven.reporter.AbstractQaJgivenReporter<com.tngtech.jgiven.report.model.CompleteReportModel,QaJGivenReporter>
-
- dev.aherscu.qa.jgiven.reporter.QaJGivenReporter
-
- All Implemented Interfaces:
org.testng.IReporter
,org.testng.ITestNGListener
public class QaJGivenReporter extends AbstractQaJgivenReporter<com.tngtech.jgiven.report.model.CompleteReportModel,QaJGivenReporter>
All in one report.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QaJGivenReporter.QaJGivenReporterBuilder<C extends QaJGivenReporter,B extends QaJGivenReporter.QaJGivenReporterBuilder<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
String
planDocumentId
String
planDocumentRev
String
productName
String
productVersion
String
specDocumentId
String
specDocumentRev
String
testDocumentId
String
testDocumentRev
String
traceabilityDocumentId
String
traceabilityDocumentRev
-
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 QaJGivenReporter()
protected
QaJGivenReporter(QaJGivenReporter.QaJGivenReporterBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QaJGivenReporter.QaJGivenReporterBuilder<?,?>
builder()
void
generate()
Generates a report including all test classes by aggregating all JGiven generated JSON files.QaJGivenReporter.QaJGivenReporterBuilder<?,?>
toBuilder()
String
toString()
protected QaJGivenReporter
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
-
productName
public final String productName
-
productVersion
public final String productVersion
-
testDocumentId
public final String testDocumentId
-
testDocumentRev
public final String testDocumentRev
-
specDocumentId
public final String specDocumentId
-
specDocumentRev
public final String specDocumentRev
-
planDocumentId
public final String planDocumentId
-
planDocumentRev
public final String planDocumentRev
-
traceabilityDocumentId
public final String traceabilityDocumentId
-
traceabilityDocumentRev
public final String traceabilityDocumentRev
-
-
Constructor Detail
-
QaJGivenReporter
protected QaJGivenReporter(QaJGivenReporter.QaJGivenReporterBuilder<?,?> b)
-
QaJGivenReporter
public QaJGivenReporter()
-
-
Method Detail
-
with
protected QaJGivenReporter 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.CompleteReportModel,QaJGivenReporter>
- Parameters:
xmlSuite
- TestNG XML suite- Returns:
- reporter configured
-
generate
public void generate()
Generates a report including all test classes by aggregating all JGiven generated JSON files.- Specified by:
generate
in classAbstractQaJgivenReporter<com.tngtech.jgiven.report.model.CompleteReportModel,QaJGivenReporter>
-
builder
public static QaJGivenReporter.QaJGivenReporterBuilder<?,?> builder()
-
toBuilder
public QaJGivenReporter.QaJGivenReporterBuilder<?,?> toBuilder()
- Specified by:
toBuilder
in classAbstractQaJgivenReporter<com.tngtech.jgiven.report.model.CompleteReportModel,QaJGivenReporter>
-
toString
public String toString()
- Overrides:
toString
in classAbstractQaJgivenReporter<com.tngtech.jgiven.report.model.CompleteReportModel,QaJGivenReporter>
-
-