saveTestCase
Saves changes made to a test case record and unlocks the record. Use editTestCase or editTestCaseByRecordID to start the editing process.
A SOAP error envelope is returned if the operation fails. If the operation fails, use cancelSaveTestCase to unlock the record instead.
Parameters
Parameter | Type | Description |
---|---|---|
cookie | long | Session cookie returned by projectLogon. |
pTestCase | CTestCase | Edited test case to save. |
Return value
Value | Type | Notes |
---|---|---|
result | int | 0 indicates success. Check the return value in case of an error. |
Example
CTestCase tc = ttsdk.editTestCase(cookie, 0, "Test case summary", false);
try
{
tc.summary = "Test case summary SOAP EDIT";
// The following line throws an exception if the operation fails.
ttsdk.saveTestCase(cookie, tc);
}
catch (Exception e)
{
// The following operation unlocks the record.
ttsdk.cancelSaveTestCase(cookie, tc.recordid);
}