Package com.mks.tm.api
Interface ITestResultDelta
public interface ITestResultDelta
A record of the modifications that will be made to a test result.
-
Method Summary
Modifier and TypeMethodDescriptionaddAttachment
(File file, String name, String summary) Add an attachment to a test result.void
addRelatedItem
(int itemID) Add a relationship from the test result.Get the collection of attachment deltas for the attachments that will be added to the test result.Get the collection of related item IDs that will be added to the test result.Get the annotation for the test result.Get the collection of attachment names for the attachments that will be removed from the test result.Get the collection of related item IDs that will be removed from the test result.int
The ID of the test case.int
The ID of the test session.Get the verdict for the test result.removeAttachment
(String name) Remove an attachment from a test result.void
removeRelatedItem
(int itemID) Remove a relationship from the test result.void
setAnnotation
(String annotation) Set the annotation for the test result.void
setVerdict
(String verdict) Set the verdict for the test result.
-
Method Details
-
getTestSessionID
int getTestSessionID()The ID of the test session.- Returns:
- The ID of the test session.
-
getTestCaseID
int getTestCaseID()The ID of the test case.- Returns:
- The ID of the test case.
-
addAttachment
ITestResultAttachmentDelta addAttachment(File file, String name, String summary) throws TMAPIException Add an attachment to a test result.- Parameters:
file
- The local file that contains the content.name
- The name for the attachment.summary
- The summary for the attachment.- Returns:
- The attachment delta which records the addition of the attachment.
- Throws:
TMAPIException
- Reserved exception.
-
getAddedAttachments
Get the collection of attachment deltas for the attachments that will be added to the test result.- Returns:
- The collection of attachment deltas for the attachments that will be added to the test result.
- Throws:
TMAPIException
- Reserved exception.
-
removeAttachment
Remove an attachment from a test result.- Parameters:
name
- The name of the attachment to remove from the test result.- Returns:
- The attachment delta which records the removal of the attachment.
- Throws:
TMAPIException
- Reserved exception.
-
getRemovedAttachments
Get the collection of attachment names for the attachments that will be removed from the test result.- Returns:
- The collection of attachment deltas for the attachments that will be removed from the test result.
- Throws:
TMAPIException
- Reserved exception.
-
addRelatedItem
Add a relationship from the test result.- Parameters:
itemID
- The ID of the item to add as a relationship for the test result.- Throws:
TMAPIException
- Reserved exception.
-
getAddedRelatedItems
Get the collection of related item IDs that will be added to the test result.- Returns:
- The collection of related item IDs that will be added to the test result.
- Throws:
TMAPIException
- Reserved exception.
-
removeRelatedItem
Remove a relationship from the test result.- Parameters:
itemID
- The ID of the item to remove from the test result.- Throws:
TMAPIException
- Reserved exception.
-
getRemovedRelatedItems
Get the collection of related item IDs that will be removed from the test result.- Returns:
- The collection of related item IDs that will be removed from the test result.
- Throws:
TMAPIException
- Reserved exception.
-
setAnnotation
Set the annotation for the test result.- Parameters:
annotation
- The annotation for the test result.- Throws:
TMAPIException
- Reserved exception.
-
getAnnotation
Get the annotation for the test result.- Returns:
- The annotation for the test result.
- Throws:
TMAPIException
- Reserved exception.
-
setVerdict
Set the verdict for the test result.- Parameters:
verdict
- The verdict for the test result.- Throws:
TMAPIException
- Reserved exception.
-
getVerdict
Get the verdict for the test result.- Returns:
- The verdict for the test result.
- Throws:
TMAPIException
- Reserved exception.
-