cancelSaveTestCase

Unlocks a test case record locked by editTestCase or editTestCaseByRecordID. Does not need to be called if saveTestCase is successful. A SOAP error envelope is returned if the operation fails.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
recordID long Unique test case record ID.

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 = "";

 

// The following line throws an exception if summary is a required field.

ttsdk.saveTestCase(cookie, tc);

}

catch (Exception e)

{

ttsdk.cancelSaveTestCase(cookie, tc.recordid);

}