com.polarion.alm.tracker.model.ITestRecord


FIELDS
Modifiers and TypeNameDescription
String STRUCTURE_ID
String KEY_TEST_CASE
String KEY_TEST_CASE_REVISION
String KEY_TEST_CASE_WITH_REVISION
String KEY_DEFECT
String KEY_RESULT
String KEY_COMMENT
String KEY_EXECUTED_BY
String KEY_EXECUTED
String KEY_DURATION
String KEY_ATTACHMENTS
String KEY_PROPERTIES
String KEY_TEST_STEP_RESULTS
String KEY_TEST_PARAMETERS
String KEY_ITERATION
String KEY_SIGNED
String TEST_RESULT_ENUM_ID
METHODS
Modifiers and TypeNameDescription
ITestRun getTestRun()
IWorkItem getTestCase()
IWorkItem getTestCaseWithRevision()
void setTestCaseWithRevision(IWorkItem) This is the method that must be used by clients to set the test case for this record. Test record also stores the current revision of the Work Item (or baseline) to indicate the exact state of the test case. Useful for setting executed (done) test cases.
void setTestCase(IWorkItem) Set the test case without a revision, i. e. it should be always taken from the HEAD. Useful for planning test cases. When this method is called in a baseline or with a test case from a revision it does the same as {@link #setTestCaseWithRevision(IWorkItem)} .
IWorkItem getDefect()
void setDefect(IWorkItem)
IEnumOption getResult()
void setResult(IEnumOption) Sets the test result and, if required by the test run, signs the execution as completed by the current user. Note that the signing of a test record execution is allowed only via the Polarion UI.
void setResult(String) The same as {@link #setResult(IEnumOption)} , but uses the result ID.
IUser getExecutedBy()
void setExecutedBy(IUser)
Date getExecuted()
void setExecuted(Date)
Float getDuration()
void setDuration(Float)
Text getComment()
void setComment(Text)
String getProperty(String)
void setProperty(String,String)
void removeProperty(String)
List getTestStepResults()
void addTestStepResult(String,Text)
List getAttachments() Returns the list of attachments for this test record.

The returned list will NOT contain attachments attached to the test step results. They are accessible via {@link ITestStepResult#getAttachments()} .

void deleteAttachment(String) Delete attachment.
void deleteAttachmentById(String) Delete attachment using its id.
ITestRunAttachment getAttachment(String)
List getTestParameters()
IParametersManager getTestParametersManager()
boolean isPaused() Checks if the test record is in the paused state. Where the related test case was partially executed and some data like test step results, attachments, etc. was filled in, but it still has no result (a test case verdict) yet. If the test record is neither {@link #isPaused()} nor {@link #isPlanned()} then related test case was fully executed.
boolean isPlanned() Checks if the test record is in the Planned state. Planned means, that the related test case wasn't executed, (even partially), and has no result. (A test case verdict). If the test record is neither {@link #isPaused()} nor {@link #isPlanned()} then the related test case was fully executed.
boolean isExecuted() Checks if the related test case was fully executed (i.e. if it is neither {@link #isPaused()} nor {@link #isPlanned()} ).
int getIteration() If there are multiple test records for a single test case, these test records are also called iterations. The iteration number of a test record is an index of it in the list of all test records for the same test case within the containing test run.
boolean isIteration()
boolean isSigned()

Back to Index