getTestCase
Retrieves a test case record by summary or number. A SOAP error envelope is returned if the operation fails.
To retrieve a test case based on record ID, use getTestCaseByRecordID.
To edit a test case, use editTestCase or editTestCaseByRecordID.
Parameters
Parameter | Type | Description |
---|---|---|
cookie | long | Session cookie returned by projectLogon. |
testCaseNumber | long | Number of the test case to retrieve. Set as 0 to search by summary. |
summary | string | Summary of the test case to retrieve. If the summary matches more than one test case, the operation fails. This field is ignored unless testCaseNumber is 0. |
bDownloadAttachments | boolean | Indicates if attachments should be retrieved. Using False may improve performance when the file contents are not needed. |
Return value
Value | Type |
---|---|
pTestCase | CTestCase |
Example
CTestCase tc = ttsdk.getTestCase(cookie, 0, "Test case summary", false);