public class ReportBuilder extends Object
| Constructor and Description |
|---|
ReportBuilder(List<String> jsonReports,
File reportDirectory,
String pluginUrlPath,
String buildNumber,
String buildProject,
boolean skippedFails,
boolean pendingFails,
boolean undefinedFails,
boolean missingFails,
boolean flashCharts,
boolean runWithJenkins,
boolean artifactsEnabled,
String artifactConfig,
boolean highCharts,
boolean parallelTesting)
Configures report that will be used for further generation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateErrorPage(Exception exception) |
void |
generateFeatureReports() |
void |
generateReports() |
void |
generateTagOverview() |
void |
generateTagReports() |
boolean |
getBuildStatus() |
Map<String,String> |
getCustomHeader() |
static boolean |
isParallel() |
void |
setCustomHeader(Map<String,String> customHeader) |
static void |
setParallel(boolean p) |
public ReportBuilder(List<String> jsonReports, File reportDirectory, String pluginUrlPath, String buildNumber, String buildProject, boolean skippedFails, boolean pendingFails, boolean undefinedFails, boolean missingFails, boolean flashCharts, boolean runWithJenkins, boolean artifactsEnabled, String artifactConfig, boolean highCharts, boolean parallelTesting) throws IOException, org.apache.velocity.exception.VelocityException
jsonReports - list of the json files with cucumber resultsreportDirectory - where the report should be generatedpluginUrlPath - buildNumber - number of the build, helpful when report is generated by Jenkins or other CIbuildProject - name of the project for which the report is generatedskippedFails - mark steps with skipped status as failurependingFails - mark steps with pending status as failureundefinedFailsmark - steps with undefined status as failuremissingFailsmark - steps with missing status as failureflashCharts - set to true when expect to have generated report in Flash technology, false for JavaScriptrunWithJenkins - set to true to include additional information in the report such as build numberartifactsEnabled - artifactConfig - highCharts - parallelTesting - IOExceptionorg.apache.velocity.exception.VelocityExceptionpublic static boolean isParallel()
public static void setParallel(boolean p)
public boolean getBuildStatus()
public void generateReports()
throws IOException,
org.apache.velocity.exception.VelocityException
IOExceptionorg.apache.velocity.exception.VelocityExceptionpublic void generateFeatureReports()
throws IOException,
org.apache.velocity.exception.VelocityException
IOExceptionorg.apache.velocity.exception.VelocityExceptionpublic void generateTagReports()
throws IOException,
org.apache.velocity.exception.VelocityException
IOExceptionorg.apache.velocity.exception.VelocityExceptionpublic void generateTagOverview()
throws IOException,
org.apache.velocity.exception.VelocityException
IOExceptionorg.apache.velocity.exception.VelocityExceptionpublic void generateErrorPage(Exception exception) throws IOException, org.apache.velocity.exception.VelocityException
IOExceptionorg.apache.velocity.exception.VelocityExceptionCopyright © 2015. All Rights Reserved.