public class RobotSuiteResult extends RobotTestObject
duration| Constructor and Description |
|---|
RobotSuiteResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCaseResult(RobotCaseResult caseResult)
Adds a test case result to this suite.
|
void |
addCaseResults(Collection<RobotCaseResult> newCaseResults)
If cases with same name exist, the originals are kept
|
void |
addChild(RobotSuiteResult child)
Adds a nested suite to this suite.
|
void |
addChildren(Collection<RobotSuiteResult> childSuites)
If suites with same name exist, the originals are kept
|
void |
doDurationGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Return duration graph for the suite in the request.
|
void |
doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Return robot trend graph in the request.
|
void |
failTeardown()
Fail all cases because of teardown failure.
|
RobotTestObject |
findObjectById(String id)
Get object by path in tree
|
List<RobotCaseResult> |
getAllCases()
Get all cases in this suite and its child suites
|
List<RobotSuiteResult> |
getAllChildSuites()
Get all children of this suite
|
List<RobotCaseResult> |
getAllFailedCases()
Get all failed cases in this suite and its child suites
|
RobotCaseResult |
getCase(String name)
Get case result by duplicate safe unencoded name
|
Collection<RobotCaseResult> |
getCaseResults()
Get all case results belonging to this suite
|
Collection<RobotSuiteResult> |
getChildSuites()
Get the immediate child suites of this suite
|
int |
getCriticalFailed()
Get number of failed critical tests
|
int |
getCriticalPassed()
Get number of passed critical tests
|
int |
getCriticalTotal()
Get number of all critical tests
|
String |
getDisplayName() |
long |
getDuration()
Get duration of this testobject run
|
Object |
getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerRequest rsp)
Get suite or case result by url encoded name
|
int |
getFailed()
Get number of all failed tests
|
String |
getName()
Get the name of this suite
|
RobotTestObject |
getParent()
Get the parent object of this suite in tree
|
int |
getPassed()
Get number of all passed tests
|
RobotSuiteResult |
getPreviousResult() |
String |
getSearchUrl() |
RobotSuiteResult |
getSuite(String name)
Get nested suite result by duplicate safe unencoded name
|
int |
getTotal()
Get number of all tests
|
void |
setEndTime(String endTime) |
void |
setName(String name) |
void |
setParent(RobotTestObject parent) |
void |
setStartTime(String startTime) |
void |
tally(RobotBuildAction parentAction)
Count total values from children and set same parentaction to all
|
getDuplicateSafeName, getDurationDiff, getHumanReadableDuration, getOldFormatName, getOwner, getParentAction, getRelativeId, getRelativePackageName, getResultInBuild, isNeedToGenerate, setDuplicateSafeName, setParentAction, urlEncodepublic void addChild(RobotSuiteResult child)
child - public Collection<RobotSuiteResult> getChildSuites()
public RobotTestObject getParent()
getParent in class RobotTestObjectpublic void setParent(RobotTestObject parent)
public String getName()
getName in class RobotTestObjectpublic void setName(String name)
public Collection<RobotCaseResult> getCaseResults()
public int getFailed()
getFailed in class RobotTestObjectpublic int getPassed()
getPassed in class RobotTestObjectpublic int getTotal()
public int getCriticalPassed()
public int getCriticalFailed()
public int getCriticalTotal()
public void addCaseResult(RobotCaseResult caseResult)
caseResult - public void setStartTime(String startTime)
public void setEndTime(String endTime)
public long getDuration()
RobotTestObjectgetDuration in class RobotTestObjectpublic String getDisplayName()
public String getSearchUrl()
public RobotSuiteResult getSuite(String name)
name - public RobotCaseResult getCase(String name)
name - public RobotSuiteResult getPreviousResult()
getPreviousResult in class RobotTestObjectpublic Object getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerRequest rsp)
token - req - rsp - public List<RobotSuiteResult> getAllChildSuites()
public List<RobotCaseResult> getAllFailedCases()
public List<RobotCaseResult> getAllCases()
public void failTeardown()
public void tally(RobotBuildAction parentAction)
parentAction - public RobotTestObject findObjectById(String id)
id - public 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 void addChildren(Collection<RobotSuiteResult> childSuites)
childSuites - public void addCaseResults(Collection<RobotCaseResult> newCaseResults)
newCaseResults - Copyright © 2004-2014. All Rights Reserved.