public class RobotPublisher extends hudson.tasks.Recorder implements Serializable, hudson.matrix.MatrixAggregatable
| Modifier and Type | Class and Description |
|---|---|
static class |
RobotPublisher.DescriptorImpl
Descriptor for the publisher
|
hudson.tasks.Publisher.DescriptorExtensionListImpl| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_REPORT_FILE |
protected static String |
FILE_ARCHIVE_DIR |
| Constructor and Description |
|---|
RobotPublisher(String outputPath,
String outputFileName,
boolean disableArchiveOutput,
String reportFileName,
String logFileName,
double passThreshold,
double unstableThreshold,
boolean onlyCritical,
String otherFiles)
Create new publisher for Robot Framework results
|
| Modifier and Type | Method and Description |
|---|---|
static void |
copyFilesToBuildDir(hudson.model.AbstractBuild<?,?> build,
String inputPath,
String filemaskToCopy)
Copy files with given filemasks from input path relative to build into specific build file archive dir
|
hudson.matrix.MatrixAggregator |
createAggregator(hudson.matrix.MatrixBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
protected hudson.model.Result |
getBuildResult(hudson.model.AbstractBuild<?,?> build,
RobotResult result)
Determines the build result based on set thresholds.
|
boolean |
getDisableArchiveOutput() |
String |
getLogFileName()
Gets the name of log html file.
|
boolean |
getOnlyCritical()
Gets if only critical tests should be accounted for the thresholds.
|
String |
getOtherFiles()
Gets the comma separated list of other filemasks to copy into build dir
|
String |
getOutputFileName()
Gets the name of output xml file.
|
String |
getOutputPath()
Gets the output path of Robot files
|
double |
getPassThreshold()
Gets the test pass percentage threshold for successful builds.
|
Collection<hudson.model.Action> |
getProjectActions(hudson.model.AbstractProject<?,?> project) |
String |
getReportFileName()
Gets the name of report html file.
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
static String |
getSuffix(String filename)
Return file suffix from string.
|
double |
getUnstableThreshold()
Gets the test pass percentage threshold for unstable builds.
|
protected RobotResult |
parse(String expandedTestResults,
String outputPath,
hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
static String |
trimSuffix(String filename)
Return filename without file suffix.
|
all, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, perform, prebuildprotected static final String DEFAULT_REPORT_FILE
protected static final String FILE_ARCHIVE_DIR
@DataBoundConstructor public RobotPublisher(String outputPath, String outputFileName, boolean disableArchiveOutput, String reportFileName, String logFileName, double passThreshold, double unstableThreshold, boolean onlyCritical, String otherFiles)
outputPath - Path to Robot Framework's output filesoutputFileName - Name of Robot output xmldisableArchiveOutput - Disable Archiving output xml file to serverreportFileName - Name of Robot report htmllogFileName - Name of Robot log htmlpassThreshold - Threshold of test pass percentage for successful buildsunstableThreshold - Threhold of test pass percentage for unstable buildsonlyCritical - True if only critical tests are included in pass percentagepublic String getOutputPath()
public String getOutputFileName()
public boolean getDisableArchiveOutput()
public String getReportFileName()
public String getLogFileName()
public double getPassThreshold()
public double getUnstableThreshold()
public boolean getOnlyCritical()
public String getOtherFiles()
public Collection<hudson.model.Action> getProjectActions(hudson.model.AbstractProject<?,?> project)
getProjectActions in interface hudson.tasks.BuildStepgetProjectActions in class hudson.tasks.BuildStepCompatibilityLayerprotected RobotResult parse(String expandedTestResults, String outputPath, hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerInterruptedExceptionIOExceptionpublic static void copyFilesToBuildDir(hudson.model.AbstractBuild<?,?> build,
String inputPath,
String filemaskToCopy)
throws IOException,
InterruptedException
build - inputPath - Base path for copy. Relative to build workspace.filemaskToCopy - List of Ant GLOB style filemasks to copy from dirs specified at inputPathMaskIOExceptionInterruptedExceptionpublic static String trimSuffix(String filename)
filename - public static String getSuffix(String filename)
filename - protected hudson.model.Result getBuildResult(hudson.model.AbstractBuild<?,?> build,
RobotResult result)
build - Build to be evaluatedresult - Results associated to buildpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildSteppublic hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
createAggregator in interface hudson.matrix.MatrixAggregatableCopyright © 2004-2014. All Rights Reserved.