|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
hudson.plugins.robot.RobotPublisher
public class RobotPublisher
| Nested Class Summary | |
|---|---|
static class |
RobotPublisher.DescriptorImpl
Descriptor for the publisher |
| Nested classes/interfaces inherited from class hudson.tasks.Publisher |
|---|
hudson.tasks.Publisher.DescriptorExtensionListImpl |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
|---|
hudson.tasks.BuildStep.PublisherList |
| Field Summary | |
|---|---|
protected static java.lang.String |
DEFAULT_REPORT_FILE
|
protected static java.lang.String |
FILE_ARCHIVE_DIR
|
| Fields inherited from interface hudson.tasks.BuildStep |
|---|
BUILDERS, PUBLISHERS |
| Constructor Summary | |
|---|---|
RobotPublisher(java.lang.String outputPath,
java.lang.String outputFileName,
java.lang.String reportFileName,
java.lang.String logFileName,
double passThreshold,
double unstableThreshold,
boolean onlyCritical,
java.lang.String logFileLink,
java.lang.String otherFiles)
Create new publisher for Robot Framework results |
|
| Method Summary | |
|---|---|
static void |
copyFilesToBuildDir(hudson.model.AbstractBuild<?,?> build,
java.lang.String inputPath,
java.lang.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)
|
static void |
flattenDirsCopy(java.lang.String filemask,
hudson.FilePath srcDir,
hudson.FilePath destDir)
Copy files matching given filemask from all subdirectories to destination directory |
protected hudson.model.Result |
getBuildResult(hudson.model.AbstractBuild<?,?> build,
RobotResult result)
Determines the build result based on set thresholds. |
java.lang.String |
getLogFileLink()
Return the filename to be rendered in the job front page |
java.lang.String |
getLogFileName()
Gets the name of log html file. |
boolean |
getOnlyCritical()
Gets if only critical tests should be accounted for the thresholds. |
java.lang.String |
getOtherFiles()
Gets the comma separated list of other filemasks to copy into build dir |
java.lang.String |
getOutputFileName()
Gets the name of output xml file. |
java.lang.String |
getOutputPath()
Gets the output path of Robot files |
double |
getPassThreshold()
Gets the test pass percentage threshold for successful builds. |
java.util.Collection<hudson.model.Action> |
getProjectActions(hudson.model.AbstractProject<?,?> project)
|
java.lang.String |
getReportFileName()
Gets the name of report html file. |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
|
static java.lang.String |
getSuffix(java.lang.String filename)
Return file suffix from string. |
double |
getUnstableThreshold()
Gets the test pass percentage threshold for unstable builds. |
protected RobotResult |
parse(java.lang.String expandedTestResults,
java.lang.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 java.lang.String |
trimSuffix(java.lang.String filename)
Return filename without file suffix. |
| Methods inherited from class hudson.tasks.Recorder |
|---|
getDescriptor |
| Methods inherited from class hudson.tasks.Publisher |
|---|
all, getProjectAction, needsToRunAfterFinalized, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
|---|
getProjectAction, perform, prebuild |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.tasks.BuildStep |
|---|
getProjectAction, prebuild |
| Field Detail |
|---|
protected static final java.lang.String DEFAULT_REPORT_FILE
protected static final java.lang.String FILE_ARCHIVE_DIR
| Constructor Detail |
|---|
@DataBoundConstructor
public RobotPublisher(java.lang.String outputPath,
java.lang.String outputFileName,
java.lang.String reportFileName,
java.lang.String logFileName,
double passThreshold,
double unstableThreshold,
boolean onlyCritical,
java.lang.String logFileLink,
java.lang.String otherFiles)
outputPath - Path to Robot Framework's output filesoutputFileName - Name of Robot output xmlreportFileName - 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 percentage| Method Detail |
|---|
public java.lang.String getOutputPath()
public java.lang.String getOutputFileName()
public java.lang.String getReportFileName()
public java.lang.String getLogFileName()
public double getPassThreshold()
public double getUnstableThreshold()
public boolean getOnlyCritical()
public java.lang.String getLogFileLink()
public java.lang.String getOtherFiles()
public java.util.Collection<hudson.model.Action> getProjectActions(hudson.model.AbstractProject<?,?> project)
getProjectActions in interface hudson.tasks.BuildStepgetProjectActions in class hudson.tasks.BuildStepCompatibilityLayer
protected RobotResult parse(java.lang.String expandedTestResults,
java.lang.String outputPath,
hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.lang.InterruptedException,
java.io.IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerjava.lang.InterruptedException
java.io.IOException
public static void copyFilesToBuildDir(hudson.model.AbstractBuild<?,?> build,
java.lang.String inputPath,
java.lang.String... filemaskToCopy)
throws java.io.IOException,
java.lang.InterruptedException
build - inputPath - Base path for copy. Relative to build workspace.filemaskToCopy - List of Ant GLOB style filemasks to copy from dirs specified at inputPathMask
java.io.IOException
java.lang.InterruptedException
public static void flattenDirsCopy(java.lang.String filemask,
hudson.FilePath srcDir,
hudson.FilePath destDir)
throws java.io.IOException,
java.lang.InterruptedException
filemask - Ant GLOB style filemasksrcDir - source dir as stringdestDir - destination dir as string
java.io.IOException - on copy failure
java.lang.InterruptedExceptionpublic static java.lang.String trimSuffix(java.lang.String filename)
filename -
public static java.lang.String getSuffix(java.lang.String filename)
filename -
protected hudson.model.Result getBuildResult(hudson.model.AbstractBuild<?,?> build,
RobotResult result)
build - Build to be evaluatedresult - Results associated to build
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildStep
public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
createAggregator in interface hudson.matrix.MatrixAggregatable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||