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(RobotSuiteResult parent, org.dom4j.Element testCase)
          Create new case result from -element
RobotCaseResult(java.lang.String name)
           
 
Method Summary
 void doDurationGraph(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 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()
           
 boolean isCritical()
           
 boolean isPassed()
           
 void setCritical(boolean critical)
           
 void setDuration(long duration)
           
 void setErrorMsg(java.lang.String errorMsg)
           
 void setPassed(boolean passed)
           
protected  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(java.lang.String name)

RobotCaseResult

public RobotCaseResult(RobotSuiteResult parent,
                       org.dom4j.Element testCase)
Create new case result from -element

Parameters:
parent - parent suite object
testCase - testcase elemen in xml
Method Detail

timeDifference

protected long timeDifference(java.lang.String time1,
                              java.lang.String time2)
Difference between string timevalues in format yyyyMMdd HH:mm:ss.SS (Java DateFormat). Difference is calculated time2 - time1.

Parameters:
time1 -
time2 -
Returns:

getName

public java.lang.String getName()

Specified by:
getName in class RobotTestObject

getParent

public RobotTestObject getParent()

Specified by:
getParent in class RobotTestObject

getDuration

public long getDuration()

setDuration

public void setDuration(long duration)

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

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


Copyright © 2011. All Rights Reserved.