public abstract class CucumberResultsCommon extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CHART_HEIGHT |
static int |
CHART_THICKNESS |
static int |
CHART_WIDTH |
private String |
outputDirectory |
private String |
outputName |
private String |
pdfPageSize |
private String |
sourceFile |
| Constructor and Description |
|---|
CucumberResultsCommon() |
| Modifier and Type | Method and Description |
|---|---|
CucumberFeatureResult[] |
aggregateResults(CucumberFeatureResult[] input,
boolean collapse) |
private void |
convertSvgToPng(File svg,
File png) |
private String |
drawPieBorders(int width,
int height,
int[] values,
String[] labels,
String[] colors,
int pieVOffset,
int shift) |
private String |
drawPieLayer(int width,
int height,
int[] values,
String[] labels,
String[] colors,
int pieVOffset,
int shift) |
void |
dumpOverviewStats(File outFile,
CucumberFeatureResult[] results) |
void |
exportToPDF(File htmlFile,
String suffix) |
String |
generatePieChart(int width,
int height,
int[] values,
String[] labels,
String[] colors,
String[] shadowColors,
int pieThickness,
int shift) |
String |
getOutputDirectory() |
String |
getOutputName() |
String |
getPdfPageSize() |
String |
getSourceFile() |
int[][] |
getStatuses(CucumberFeatureResult[] results) |
CucumberFeatureResult[] |
readFileContent(boolean aggregate) |
<T extends CucumberFeatureResult> |
readFileContent(Class<T> param) |
CucumberFeatureResult[] |
readFileContent(String sourceFileValue,
boolean aggregate) |
String |
replaceHtmlEntitiesWithCodes(String input) |
String |
replaceSvgWithPng(File htmlFile) |
void |
setOutputDirectory(String outputDirectoryValue) |
void |
setOutputName(String outputNameValue) |
void |
setPdfPageSize(String pdfPageSizeValue) |
void |
setSourceFile(String sourceFileValue) |
public static final int CHART_WIDTH
public static final int CHART_HEIGHT
public static final int CHART_THICKNESS
private String sourceFile
private String outputDirectory
private String outputName
private String pdfPageSize
public final String getOutputDirectory()
public final void setOutputDirectory(String outputDirectoryValue)
outputDirectoryValue - the outputDirectory to setpublic final String getOutputName()
public final void setOutputName(String outputNameValue)
outputNameValue - the outputName to setpublic final String getSourceFile()
public final void setSourceFile(String sourceFileValue)
sourceFileValue - the sourceFile to setpublic String getPdfPageSize()
public void setPdfPageSize(String pdfPageSizeValue)
public CucumberFeatureResult[] aggregateResults(CucumberFeatureResult[] input, boolean collapse)
public CucumberFeatureResult[] readFileContent(String sourceFileValue, boolean aggregate) throws Exception
Exceptionpublic CucumberFeatureResult[] readFileContent(boolean aggregate) throws Exception
Exceptionpublic <T extends CucumberFeatureResult> T[] readFileContent(Class<T> param) throws Exception
Exceptionpublic String replaceHtmlEntitiesWithCodes(String input) throws IOException
IOExceptionprivate String drawPieBorders(int width, int height, int[] values, String[] labels, String[] colors, int pieVOffset, int shift)
private String drawPieLayer(int width, int height, int[] values, String[] labels, String[] colors, int pieVOffset, int shift)
public String generatePieChart(int width, int height, int[] values, String[] labels, String[] colors, String[] shadowColors, int pieThickness, int shift) throws IOException
IOExceptionpublic void dumpOverviewStats(File outFile, CucumberFeatureResult[] results)
public void exportToPDF(File htmlFile, String suffix) throws Exception
Exceptionpublic int[][] getStatuses(CucumberFeatureResult[] results)
Copyright © 2013-2016. All Rights Reserved.