Class RobotCaseResult

All Implemented Interfaces:
ModelObject, SearchableModelObject, SearchItem, Serializable

public class RobotCaseResult extends RobotTestObject
See Also:
  • Constructor Details

    • RobotCaseResult

      public RobotCaseResult()
  • Method Details

    • 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 time
      time2 - End time
      Returns:
      Elapsed time from start to end
      Throws:
      ParseException - thrown exception
    • getName

      public String getName()
      Specified by:
      getName in class RobotTestObject
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in class RobotTestObject
    • setDescription

      public void setDescription(String description)
    • 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:
      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()
    • getTags

      public List<String> getTags()
    • getCommaSeparatedTags

      public String getCommaSeparatedTags()
    • addTags

      public void addTags(List<String> taglist)
    • 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
      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 class RobotTestObject
      Parameters:
      req - StaplerRequest
      rsp - StaplerResponse
      Throws:
      IOException - thrown exception
    • getFailed

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

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

      public int getSkipped()
      Specified by:
      getSkipped in class RobotTestObject
    • getCriticalFailed

      @Deprecated public long getCriticalFailed()
      Deprecated.
      Specified by:
      getCriticalFailed in class RobotTestObject
    • getCriticalPassed

      @Deprecated public long getCriticalPassed()
      Deprecated.
      Specified by:
      getCriticalPassed in class RobotTestObject