|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.plugins.robot.model.RobotTestObject
hudson.plugins.robot.model.RobotResult
public class RobotResult
Class representing Robot Framework test results.
| Field Summary |
|---|
| Fields inherited from class hudson.plugins.robot.model.RobotTestObject |
|---|
duration |
| Constructor Summary | |
|---|---|
RobotResult()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class hudson.plugins.robot.model.RobotTestObject |
|---|
getDuplicateSafeName, getDurationDiff, getHumanReadableDuration, getOldFormatName, getOwner, getParentAction, getRelativeId, getRelativePackageName, getResultInBuild, isNeedToGenerate, setDuplicateSafeName, setParentAction, urlDecode, urlEncode |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RobotResult()
| Method Detail |
|---|
public 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 calculated
public 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 -
IOException
javax.servlet.ServletException
InterruptedException
public void doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - rsp -
IOException
public 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 RobotTestObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||