public class RobotResult extends RobotTestObject
duration| Constructor and Description |
|---|
RobotResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSuite(RobotSuiteResult suite)
Add a suite to this result.
|
void |
doDurationGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Return robot trend graph in the request.
|
void |
doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Return robot trend graph in the request.
|
hudson.model.DirectoryBrowserSupport |
doReport(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Serves Robot html report via robot url.
|
RobotTestObject |
findObjectById(String id)
Find a testobject in the result tree with id-path
|
List<RobotCaseResult> |
getAllFailedCases()
Get all failed test cases related to result.
|
List<RobotSuiteResult> |
getAllSuites()
Get all testsuites related to result.
|
long |
getCriticalFailed()
Get number of failed critical tests.
|
long |
getCriticalPassed()
Get number of passed critical tests.
|
long |
getCriticalTotal()
Get total number of critical tests.
|
String |
getDisplayName()
}
|
long |
getDuration()
Get the total duration of the test run
|
Object |
getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Return the object represented by url-string
|
int |
getFailed() |
String |
getName() |
long |
getOverallFailed()
Get number of all failed tests.
|
long |
getOverallPassed()
Get number of all passed tests.
|
long |
getOverallTotal()
Get number of all tests.
|
RobotTestObject |
getParent() |
int |
getPassed() |
double |
getPassPercentage(boolean onlyCritical)
Returns pass percentage of passed tests per total tests.
|
RobotResult |
getPreviousResult() |
String |
getSearchUrl() |
List<RobotResultStatistics> |
getStatsByCategory()
Get pass/fail stats by category.
|
RobotSuiteResult |
getSuite(String name)
Get top level suite by name
|
Collection<RobotSuiteResult> |
getSuites()
Get all top level suites
|
String |
getTimeStamp()
Get the timestamp of the original test run
|
void |
setStatsByCategory(List<RobotResultStatistics> statsByCategory) |
void |
setTimeStamp(String timeStamp)
Set the timestamp of test run
|
void |
tally(RobotBuildAction robotBuildAction)
Count the totals in result tree and assign parent action.
|
getDuplicateSafeName, getDurationDiff, getHumanReadableDuration, getOldFormatName, getOwner, getParentAction, getRelativeId, getRelativePackageName, getResultInBuild, isNeedToGenerate, setDuplicateSafeName, setParentAction, urlEncodepublic RobotTestObject findObjectById(String id)
id - path e.g. "suite/subsuite/testcase"public String getName()
getName in class RobotTestObjectpublic long getCriticalPassed()
public long getCriticalFailed()
public long getCriticalTotal()
public long getOverallPassed()
public long getOverallFailed()
public long getOverallTotal()
public List<RobotResultStatistics> getStatsByCategory()
public void setStatsByCategory(List<RobotResultStatistics> statsByCategory)
public String getTimeStamp()
public void setTimeStamp(String timeStamp)
timeStamp - public double getPassPercentage(boolean onlyCritical)
onlyCritical - true if only critical tests are to be calculatedpublic String getDisplayName()
public String getSearchUrl()
public RobotSuiteResult getSuite(String name)
name - public void addSuite(RobotSuiteResult suite)
suite - public Collection<RobotSuiteResult> getSuites()
public List<RobotSuiteResult> getAllSuites()
public List<RobotCaseResult> getAllFailedCases()
public void tally(RobotBuildAction robotBuildAction)
robotBuildAction - public Object getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
token - req - rsp - public hudson.model.DirectoryBrowserSupport doReport(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
req - rsp - IOExceptionpublic void doDurationGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - rsp - IOExceptionpublic RobotTestObject getParent()
getParent in class RobotTestObjectpublic long getDuration()
getDuration in class RobotTestObjectpublic RobotResult getPreviousResult()
getPreviousResult in class RobotTestObjectpublic int getFailed()
getFailed in class RobotTestObjectpublic int getPassed()
getPassed in class RobotTestObjectCopyright © 2004-2014. All Rights Reserved.