public class RobotBuildAction
extends hudson.tasks.test.AbstractTestResultAction
implements org.kohsuke.stapler.StaplerProxy
| Constructor and Description |
|---|
RobotBuildAction(hudson.model.AbstractBuild<?,?> build,
RobotResult result,
String outputPath,
hudson.model.BuildListener listener,
String logFileLink,
String logHtmlLink)
Create new Robot build action
|
| Modifier and Type | Method and Description |
|---|---|
void |
doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Return robot trend graph in the request.
|
void |
doIndex(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Serves Robot html report via robot url.
|
RobotTestObject |
findObjectById(String id)
Find test object from the results object tree
|
double |
getCriticalPassPercentage()
Get ratio of passed tests per total tests.
|
String |
getDisplayName() |
int |
getFailCount() |
String |
getIconFileName() |
String |
getLogFileLink()
Get filename to link to
|
String |
getLogHtmlLink() |
double |
getOverallPassPercentage()
Get ratio of passed tests per total tests.
|
hudson.model.AbstractBuild<?,?> |
getOwner()
Get build associated to action
|
String |
getReportFileName()
Get file name for Robot html report.
|
RobotResult |
getResult()
Returns Robotresult.
|
hudson.FilePath |
getRobotDir()
Return path of robot files in build
|
Object |
getTarget()
Get the result object which is responsible for UI.
|
int |
getTotalCount() |
String |
getUrlName() |
void |
setResult(RobotResult result,
hudson.model.BuildListener listener)
Loads new data to
RobotResult. |
public RobotBuildAction(hudson.model.AbstractBuild<?,?> build,
RobotResult result,
String outputPath,
hudson.model.BuildListener listener,
String logFileLink,
String logHtmlLink)
build - Build which this action is associated toresult - Robot resultoutputPath - Path where the Robot report is stored relative to build rootlogFileLink - reportFileLink - public hudson.model.AbstractBuild<?,?> getOwner()
public String getLogFileLink()
public String getLogHtmlLink()
public void setResult(RobotResult result, hudson.model.BuildListener listener)
RobotResult.public RobotResult getResult()
getResult in class hudson.tasks.test.AbstractTestResultActionpublic String getReportFileName()
public double getOverallPassPercentage()
public double getCriticalPassPercentage()
public RobotTestObject findObjectById(String id)
id - path e.g. "suite/nestedsuite/testcase"public Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxypublic void doIndex(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
InterruptedException
req - rsp - IOExceptionjavax.servlet.ServletExceptionInterruptedExceptionpublic void doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
doGraph in class hudson.tasks.test.AbstractTestResultActionreq - rsp - IOExceptionpublic hudson.FilePath getRobotDir()
public int getFailCount()
getFailCount in class hudson.tasks.test.AbstractTestResultActionpublic int getTotalCount()
getTotalCount in class hudson.tasks.test.AbstractTestResultActionpublic String getIconFileName()
getIconFileName in interface hudson.model.ActiongetIconFileName in class hudson.tasks.test.AbstractTestResultActionpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectgetDisplayName in class hudson.tasks.test.AbstractTestResultActionpublic String getUrlName()
getUrlName in interface hudson.model.ActiongetUrlName in class hudson.tasks.test.AbstractTestResultActionCopyright © 2004-2014. All Rights Reserved.