Interface ICCImportTestcase

All Superinterfaces:
ICCBase, ICCConstants, ICCTestcase

public interface ICCImportTestcase extends ICCTestcase
An imported test or testcase
Since:
3.1
  • Method Details

    • setLevel

      void setLevel(ICCConstants.COVERAGE_LEVEL level) throws CCImportException
      Set the level for this testcase. Normally all testcases should have the same level to ensure the results are consistent When merging a testcase an exception will be thrown if the new level differs from what was already set
      Parameters:
      level - link ICCConstants.COVERAGE_LEVEL
      Throws:
      CCImportException - is thrown if merging a testcase and the new level differs from the level already set
    • setStartTime

      void setStartTime(long startTime)
      Set the start time from the testcase When merging a testcase the earliest time will be used, times after an already set time will be ignored
      Parameters:
      startTime - time testcase was started in milliseconds
    • setElapsedTime

      void setElapsedTime(long elapsedTime)
      Set the elapsed time from the testcase It should also be added to the result for a total elapsed time When merging a testcase the times will be averaged with an prior value The intent is to return a value that represents an approximate time that it will take to run the testcase. NOTE: The implementer should ignore zero or extremely large values.
      Parameters:
      elapsedTime - time testcase took to run in milliseconds
    • setTag

      void setTag(String tag)
      Optional tags from in the testcase should be added here. Clarified behaviour:
      New in v9 :
      • Passing null clears all tags.
      • Passing an empty string does nothing.
      • If a tag does not already exist then it is set to the passed tag.
      • If a tag already exists the passed tag will be appended with a comma separator.
      Parameters:
      tag - to add or null to clear
    • setEngineKey

      void setEngineKey(String engineKey)
      Add the unique engine key used to capture the testcase that is being imported
      Parameters:
      engineKey - engine key that uniquely identifies the debug engine that captured the testcase
    • setResult

      void setResult(int result)
      Set the result of the testcase NOTE: a value of zero is considered a success and ICCTestcase.isSuccessful() will return true
      Parameters:
      result - return code from running the testcase, zero means success
      Since:
      7.0