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, java.io.Serializable

public class RobotCaseResult
extends RobotTestObject

See Also:
Serialized Form

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
 java.lang.String getDisplayName()
           
 long getDuration()
           
 java.lang.String getEndtime()
           
 java.lang.String getErrorMsg()
           
 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
 java.lang.String getName()
          
 RobotTestObject getParent()
          
 RobotCaseResult getPreviousResult()
          Gives the corresponding caseresult from previous build
 java.lang.String getSearchUrl()
           
 java.lang.String getStarttime()
           
 boolean isCritical()
           
 boolean isPassed()
           
 void setCritical(boolean critical)
           
 void setEndtime(java.lang.String endtime)
           
 void setErrorMsg(java.lang.String errorMsg)
           
 void setFailedSince(int failedSince)
           
 void setName(java.lang.String name)
           
 void setParent(RobotSuiteResult parent)
           
 void setPassed(boolean passed)
           
 void setStarttime(java.lang.String starttime)
           
static long timeDifference(java.lang.String time1, java.lang.String time2)
          Difference between string timevalues in format yyyyMMdd HH:mm:ss.SS (Java DateFormat).
 
Methods inherited from class hudson.plugins.robot.model.RobotTestObject
getOwner, getParentAction, getRelativeId, getRelativePackageName, getResultInBuild, getSafeName, isNeedToGenerate, setParentAction
 
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(java.lang.String time1,
                                  java.lang.String time2)
                           throws java.text.ParseException
Difference between string timevalues in format yyyyMMdd HH:mm:ss.SS (Java DateFormat). Difference is calculated time2 - time1.

Parameters:
time1 -
time2 -
Returns:
Throws:
java.text.ParseException

getName

public java.lang.String getName()

Specified by:
getName in class RobotTestObject

setName

public void setName(java.lang.String name)

getParent

public RobotTestObject getParent()

Specified by:
getParent in class RobotTestObject

setParent

public void setParent(RobotSuiteResult parent)

getDuration

public long getDuration()

getStarttime

public java.lang.String getStarttime()

setStarttime

public void setStarttime(java.lang.String starttime)

getEndtime

public java.lang.String getEndtime()

setEndtime

public void setEndtime(java.lang.String endtime)

getErrorMsg

public java.lang.String getErrorMsg()

setErrorMsg

public void setErrorMsg(java.lang.String errorMsg)

setPassed

public void setPassed(boolean passed)

setCritical

public void setCritical(boolean critical)

getDisplayName

public java.lang.String getDisplayName()

getSearchUrl

public java.lang.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 java.io.IOException
Return duration graph of the case in the request.

Parameters:
req -
rsp -
Throws:
java.io.IOException

doGraph

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

Parameters:
req -
rsp -
Throws:
java.io.IOException


Copyright © 2004-2012. All Rights Reserved.