Package hudson.plugins.robot.model
Class RobotCaseResult
java.lang.Object
hudson.model.AbstractModelObject
hudson.plugins.robot.model.RobotTestObject
hudson.plugins.robot.model.RobotCaseResult
- 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
void
doGraph
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Return duration graph of the case in the request.int
getAge()
Get the number of builds this test case has failed forlong
Deprecated.long
Deprecated.long
Get duration of this testobject rundouble
int
int
Gives the buildnumber of the build that this case first failed inRun<?,
?> Gives the run that this case first failed ingetName()
int
Gives the corresponding caseresult from previous buildint
getTags()
boolean
boolean
isPassed()
boolean
void
setCritical
(boolean critical) void
setDescription
(String description) void
setElapsedTime
(String elapsed) void
setEndtime
(String endtime) void
setErrorMsg
(String errorMsg) void
setFailedSince
(int failedSince) void
void
setParent
(RobotSuiteResult parent) void
setPassed
(boolean passed) void
setSkipped
(boolean skipped) void
setStackTrace
(String stackTrace) void
setStarttime
(String starttime) static long
timeDifference
(String time1, String time2) Difference between string timevalues in format yyyyMMdd HH:mm:ss.SS (Java DateFormat).Methods inherited from class hudson.plugins.robot.model.RobotTestObject
doDurationGraph, 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
-
RobotCaseResult
public RobotCaseResult()
-
-
Method Details
-
timeDifference
Difference between string timevalues in format yyyyMMdd HH:mm:ss.SS (Java DateFormat). Difference is calculated time2 - time1.- Parameters:
time1
- Start timetime2
- End time- Returns:
- Elapsed time from start to end
- Throws:
ParseException
- thrown exception
-
getName
- Specified by:
getName
in classRobotTestObject
-
setName
-
getDescription
- Specified by:
getDescription
in classRobotTestObject
-
setDescription
-
getParent
- Specified by:
getParent
in classRobotTestObject
-
setParent
-
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
-
getStarttime
-
setStarttime
-
getEndtime
-
setEndtime
-
getElapsedtime
public double getElapsedtime() -
setElapsedTime
-
getErrorMsg
-
setErrorMsg
-
getStackTrace
-
setStackTrace
-
setPassed
public void setPassed(boolean passed) -
setSkipped
public void setSkipped(boolean skipped) -
setCritical
public void setCritical(boolean critical) -
getDisplayName
-
getSearchUrl
-
isPassed
public boolean isPassed() -
isSkipped
public boolean isSkipped() -
isCritical
public boolean isCritical() -
getTags
-
getCommaSeparatedTags
-
addTags
-
getFailedSince
public int getFailedSince()Gives the buildnumber of the build that this case first failed in- Returns:
- number of build
-
setFailedSince
public void setFailedSince(int failedSince) -
getPreviousResult
Gives the corresponding caseresult from previous build- Specified by:
getPreviousResult
in classRobotTestObject
- Returns:
- Previous result
-
getFailedSinceRun
Gives the run that this case first failed in- Returns:
- run object
-
getAge
public int getAge()Get the number of builds this test case has failed for- Returns:
- number of builds
-
doGraph
public void doGraph(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException Return duration graph of the case in the request.- Overrides:
doGraph
in classRobotTestObject
- Parameters:
req
- StaplerRequestrsp
- StaplerResponse- Throws:
IOException
- thrown exception
-
getFailed
public int getFailed()- Specified by:
getFailed
in classRobotTestObject
-
getPassed
public int getPassed()- Specified by:
getPassed
in classRobotTestObject
-
getSkipped
public int getSkipped()- Specified by:
getSkipped
in classRobotTestObject
-
getCriticalFailed
Deprecated.- Specified by:
getCriticalFailed
in classRobotTestObject
-
getCriticalPassed
Deprecated.- Specified by:
getCriticalPassed
in classRobotTestObject
-