Interface ICCImportTestcase
- All Superinterfaces:
ICCBase,ICCConstants,ICCTestcase
An imported test or testcase
- Since:
- 3.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCConstants
ICCConstants.COVERAGE_LEVEL, ICCConstants.COVERAGE_VIEW -
Field Summary
Fields inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCConstants
DATE_FORMAT, LANG_A, LANG_ALP_ASM, LANG_B, LANG_C, LANG_CL_400, LANG_COBOL, LANG_COBOL_COPYBOOK, LANG_CPP, LANG_FORTRAN, LANG_GCJ, LANG_JAVA, LANG_JAVASCRIPT, LANG_OPM_RPG, LANG_PLI, LANG_PLX, LANG_PLX86, LANG_RPG, LANG_SYSTEM, LANG_UNKNOWN, LANG_UPC, LANG_X10, LANGUAGE_DISPLAY_NAMES, RESULT_ERROR, RESULT_OK, RESULT_WARNING -
Method Summary
Modifier and TypeMethodDescriptionvoidsetElapsedTime(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.voidsetEngineKey(String engineKey) Add the unique engine key used to capture the testcase that is being importedvoidSet the level for this testcase.voidsetResult(int result) Set the result of the testcase NOTE: a value of zero is considered a success andICCTestcase.isSuccessful()will return truevoidsetStartTime(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 ignoredvoidOptional tags from in the testcase should be added here.Methods inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCBase
addEncodedMessage, addMessage, addMessage, getDecodedMessages, getDecodedMessages, getID, getMessages, getName, getProperties, getProperty, getProperty, isMessage, isProperty, setName, setProperty, updatePropertyMethods inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCTestcase
getElapsedTime, getEngineKey, getLevel, getResult, getStartTime, getTag, isSuccessful
-
Method Details
-
setLevel
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- linkICCConstants.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
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
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 andICCTestcase.isSuccessful()will return true- Parameters:
result- return code from running the testcase, zero means success- Since:
- 7.0
-