Package hudson.plugins.robot.model
Class RobotSuiteResult
java.lang.Object
hudson.model.AbstractModelObject
hudson.plugins.robot.model.RobotTestObject
hudson.plugins.robot.model.RobotSuiteResult
- All Implemented Interfaces:
ModelObject
,SearchableModelObject
,SearchItem
,Serializable
- See Also:
-
Field Summary
Fields inherited from class hudson.plugins.robot.model.RobotTestObject
duration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 keptvoid
addChild
(RobotSuiteResult child) Adds a nested suite to this suite.void
addChildren
(Collection<RobotSuiteResult> childSuites) If suites with same name exist, the originals are keptvoid
Fail all cases because of teardown failure.findObjectById
(String id) Get object by path in treeGet all cases in this suite and its child suitesGet all children of this suiteGet all failed cases in this suite and its child suitesGet all passed cases in this suite and its child suitesGet all skipped cases in this suite and its child suitesGet case result by duplicate safe unencoded nameGet all case results belonging to this suiteGet the immediate child suites of this suitelong
Deprecated.long
Deprecated.int
Deprecated.Get the description of this suitelong
Get duration of this testobject rungetDynamic
(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerRequest rsp) Get suite or case result by url encoded nameint
Get number of all failed testsgetName()
Get the name of this suiteGet the parent object of this suite in treeint
Get number of all passed testsint
Get nested suite result by duplicate safe unencoded nameint
getTotal()
Get number of all testsvoid
setDescription
(String description) void
setElapsedTime
(String elapsedTime) void
setEndTime
(String endTime) void
void
setParent
(RobotTestObject parent) void
setSchemaVersion
(int version) void
setStartTime
(String startTime) void
tally
(RobotBuildAction parentAction) Count total values from children and set same parentaction to allMethods inherited from class hudson.plugins.robot.model.RobotTestObject
doDurationGraph, doGraph, getDuplicateSafeName, getDurationDiff, getHasLog, getHasReport, getHumanReadableDuration, getId, getLogFile, getOldFormatName, getOwner, getParentAction, getRelativeId, getRelativePackageName, getRelativeParent, getReportFile, getResultInBuild, isNeedToGenerate, setDuplicateSafeName, setId, setLogFile, setParentAction, setReportFile, urlEncode
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Constructor Details
-
RobotSuiteResult
public RobotSuiteResult()
-
-
Method Details
-
addChild
Adds a nested suite to this suite. If a suite exists with the same name it will be overwritten with this one.- Parameters:
child
- Child to be added
-
getChildSuites
Get the immediate child suites of this suite- Returns:
- the immediate child suites of this suite
-
getParent
Get the parent object of this suite in tree- Specified by:
getParent
in classRobotTestObject
- Returns:
- the parent object of this suite in tree
-
setParent
-
getName
Get the name of this suite- Specified by:
getName
in classRobotTestObject
- Returns:
- Suite name
-
setName
-
getDescription
Get the description of this suite- Specified by:
getDescription
in classRobotTestObject
- Returns:
- Suite description
-
setDescription
-
getCaseResults
Get all case results belonging to this suite- Returns:
- Collection of all case results belonging to this suite
-
getFailed
public int getFailed()Get number of all failed tests- Specified by:
getFailed
in classRobotTestObject
- Returns:
- number of all failed tests
-
getPassed
public int getPassed()Get number of all passed tests- Specified by:
getPassed
in classRobotTestObject
- Returns:
- number of all passed tests
-
getSkipped
public int getSkipped()- Specified by:
getSkipped
in classRobotTestObject
-
getTotal
public int getTotal()Get number of all tests- Returns:
- number of all tests
-
getCriticalPassed
Deprecated.Get number of passed critical tests- Specified by:
getCriticalPassed
in classRobotTestObject
- Returns:
- number of passed critical tests
-
getCriticalFailed
Deprecated.Get number of failed critical tests- Specified by:
getCriticalFailed
in classRobotTestObject
- Returns:
- number of failed critical tests
-
getCriticalTotal
Deprecated.Get number of all critical tests- Returns:
- number of all critical tests
-
setSchemaVersion
public void setSchemaVersion(int version) -
addCaseResult
Adds a test case result to this suite. If a case exists with the same name it will be overwritten with this one.- Parameters:
caseResult
- Case to be added
-
setElapsedTime
-
setStartTime
-
setEndTime
-
getDuration
public long getDuration()Description copied from class:RobotTestObject
Get duration of this testobject run- Overrides:
getDuration
in classRobotTestObject
- Returns:
- Duration of this testobject run
-
getDisplayName
-
getSearchUrl
-
getSuite
Get nested suite result by duplicate safe unencoded name- Parameters:
name
- suite name- Returns:
- suite result, null if none found
-
getCase
Get case result by duplicate safe unencoded name- Parameters:
name
- case name- Returns:
- case result, null if none found
-
getPreviousResult
- Specified by:
getPreviousResult
in classRobotTestObject
-
getDynamic
public Object getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerRequest rsp) Get suite or case result by url encoded name- Parameters:
token
- tokenreq
- StaplerRequestrsp
- StaplerResponse- Returns:
- suite or case result by url encoded name
-
getAllChildSuites
Get all children of this suite- Returns:
- all children of this suite
-
getAllFailedCases
Get all failed cases in this suite and its child suites- Returns:
- all failed cases in this suite and its child suites
-
getAllPassedCases
Get all passed cases in this suite and its child suites- Returns:
- all passed cases in this suite and its child suites
-
getAllSkippedCases
Get all skipped cases in this suite and its child suites- Returns:
- all skipped cases in this suite and its child suites
-
getAllCases
Get all cases in this suite and its child suites- Returns:
- all cases in this suite and its child suites
-
failTeardown
public void failTeardown()Fail all cases because of teardown failure. -
tally
Count total values from children and set same parentaction to all- Parameters:
parentAction
- Common parent action
-
findObjectById
Get object by path in tree- Parameters:
id
- path to object- Returns:
- Found Object
-
addChildren
If suites with same name exist, the originals are kept- Parameters:
childSuites
- Child suites to be added
-
addCaseResults
If cases with same name exist, the originals are kept- Parameters:
newCaseResults
- New case results to be added
-