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
public class RobotCaseResult extends RobotTestObject
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class hudson.plugins.robot.model.RobotTestObject
duration
-
-
Constructor Summary
Constructors Constructor Description RobotCaseResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTags(List<String> taglist)
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 forString
getCommaSeparatedTags()
long
getCriticalFailed()
long
getCriticalPassed()
String
getDescription()
String
getDisplayName()
long
getDuration()
Get duration of this testobject rundouble
getElapsedtime()
String
getEndtime()
String
getErrorMsg()
int
getFailed()
int
getFailedSince()
Gives the buildnumber of the build that this case first failed inRun<?,?>
getFailedSinceRun()
Gives the run that this case first failed inString
getName()
RobotTestObject
getParent()
int
getPassed()
RobotCaseResult
getPreviousResult()
Gives the corresponding caseresult from previous buildString
getSearchUrl()
int
getSkipped()
String
getStackTrace()
String
getStarttime()
List<String>
getTags()
boolean
isCritical()
boolean
isPassed()
boolean
isSkipped()
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
setName(String name)
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
-
-
-
-
Method Detail
-
timeDifference
public static long timeDifference(String time1, String time2) throws ParseException
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
public String getName()
- Specified by:
getName
in classRobotTestObject
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
- Specified by:
getDescription
in classRobotTestObject
-
setDescription
public void setDescription(String description)
-
getParent
public RobotTestObject getParent()
- Specified by:
getParent
in classRobotTestObject
-
setParent
public void setParent(RobotSuiteResult parent)
-
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
public String getStarttime()
-
setStarttime
public void setStarttime(String starttime)
-
getEndtime
public String getEndtime()
-
setEndtime
public void setEndtime(String endtime)
-
getElapsedtime
public double getElapsedtime()
-
setElapsedTime
public void setElapsedTime(String elapsed)
-
getErrorMsg
public String getErrorMsg()
-
setErrorMsg
public void setErrorMsg(String errorMsg)
-
getStackTrace
public String getStackTrace()
-
setStackTrace
public void setStackTrace(String stackTrace)
-
setPassed
public void setPassed(boolean passed)
-
setSkipped
public void setSkipped(boolean skipped)
-
setCritical
public void setCritical(boolean critical)
-
getDisplayName
public String getDisplayName()
-
getSearchUrl
public String getSearchUrl()
-
isPassed
public boolean isPassed()
-
isSkipped
public boolean isSkipped()
-
isCritical
public boolean isCritical()
-
getCommaSeparatedTags
public String getCommaSeparatedTags()
-
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
public RobotCaseResult getPreviousResult()
Gives the corresponding caseresult from previous build- Specified by:
getPreviousResult
in classRobotTestObject
- Returns:
- Previous result
-
getFailedSinceRun
public Run<?,?> 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
public long getCriticalFailed()
- Specified by:
getCriticalFailed
in classRobotTestObject
-
getCriticalPassed
public long getCriticalPassed()
- Specified by:
getCriticalPassed
in classRobotTestObject
-
-