hudson.plugins.robot.model
Class RobotCaseResult

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.plugins.robot.model.RobotTestObject
          extended by hudson.plugins.robot.model.RobotCaseResult
All Implemented Interfaces:
hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.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
RobotCaseResult()
           
 
Method Summary
 void doDurationGraph(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Return duration graph of the case in the request.
 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 for
 String getDisplayName()
           
 long getDuration()
          Get duration of this testobject run
 String getEndtime()
           
 String getErrorMsg()
           
 int getFailed()
           
 int getFailedSince()
          Gives the buildnumber of the build that this case first failed in
 hudson.model.Run<?,?> getFailedSinceRun()
          Gives the run that this case first failed in
 String getName()
          
 RobotTestObject getParent()
          
 int getPassed()
           
 RobotCaseResult getPreviousResult()
          Gives the corresponding caseresult from previous build
 String getSearchUrl()
           
 String getStarttime()
           
 boolean isCritical()
           
 boolean isPassed()
           
 void setCritical(boolean critical)
           
 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 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
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

RobotCaseResult

public RobotCaseResult()
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 -
time2 -
Returns:
Throws:
ParseException

getName

public String getName()

Specified by:
getName in class RobotTestObject

setName

public void setName(String name)

getParent

public RobotTestObject getParent()

Specified by:
getParent in class RobotTestObject

setParent

public void setParent(RobotSuiteResult parent)

getDuration

public long getDuration()
Description copied from class: RobotTestObject
Get duration of this testobject run

Overrides:
getDuration in class RobotTestObject
Returns:

getStarttime

public String getStarttime()

setStarttime

public void setStarttime(String starttime)

getEndtime

public String getEndtime()

setEndtime

public void setEndtime(String endtime)

getErrorMsg

public String getErrorMsg()

setErrorMsg

public void setErrorMsg(String errorMsg)

setPassed

public void setPassed(boolean passed)

setCritical

public void setCritical(boolean critical)

getDisplayName

public String getDisplayName()

getSearchUrl

public String getSearchUrl()

isPassed

public boolean isPassed()

isCritical

public boolean isCritical()

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 class RobotTestObject

getFailedSinceRun

public hudson.model.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

doDurationGraph

public void doDurationGraph(org.kohsuke.stapler.StaplerRequest req,
                            org.kohsuke.stapler.StaplerResponse rsp)
                     throws IOException
Return duration graph of the case in the request.

Parameters:
req -
rsp -
Throws:
IOException

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.

Parameters:
req -
rsp -
Throws:
IOException

getFailed

public int getFailed()
Specified by:
getFailed in class RobotTestObject

getPassed

public int getPassed()
Specified by:
getPassed in class RobotTestObject


Copyright © 2004-2013. All Rights Reserved.