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 |
generateReports() |
String |
getBuildNumber() |
String |
getBuildProject() |
boolean |
getBuildStatus() |
Map<String,String> |
getCustomHeader() |
List<String> |
getJsonFiles() |
String |
getPluginUrlPath() |
File |
getReportDirectory() |
ReportInformation |
getReportInformation() |
boolean |
isFlashCharts() |
boolean |
isHighCharts() |
static boolean |
isParallel() |
boolean |
isParsingError() |
boolean |
isRunWithJenkins() |
void |
setBuildNumber(String buildNumber) |
void |
setBuildProject(String buildProject) |
void |
setCustomHeader(Map<String,String> customHeader) |
void |
setFlashCharts(boolean flashCharts) |
void |
setHighCharts(boolean highCharts) |
static void |
setParallel(boolean p) |
void |
setParsingError(boolean parsingError) |
void |
setPluginUrlPath(String pluginUrlPath) |
void |
setReportDirectory(File reportDirectory) |
void |
setRi(ReportInformation ri) |
void |
setRunWithJenkins(boolean runWithJenkins) |
public static final String VERSION
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 ReportInformation getReportInformation()
public void setRi(ReportInformation ri)
public static boolean isParallel()
public static void setParallel(boolean p)
public File getReportDirectory()
public void setReportDirectory(File reportDirectory)
public String getBuildNumber()
public void setBuildNumber(String buildNumber)
public String getBuildProject()
public void setBuildProject(String buildProject)
public String getPluginUrlPath()
public void setPluginUrlPath(String pluginUrlPath)
public boolean isRunWithJenkins()
public void setRunWithJenkins(boolean runWithJenkins)
public boolean isParsingError()
public void setParsingError(boolean parsingError)
public boolean isFlashCharts()
public void setFlashCharts(boolean flashCharts)
public boolean isHighCharts()
public void setHighCharts(boolean highCharts)
public boolean getBuildStatus()
public void generateReports()
throws IOException,
org.apache.velocity.exception.VelocityException
IOExceptionorg.apache.velocity.exception.VelocityExceptionCopyright © 2015. All rights reserved.