cancelSaveTestRun

Unlocks a test run record locked by editTestRun or editTestRunByRecordID. Does not need to be called if saveTestRun 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 run record ID.

Return value

Value Type Notes
result int 0 indicates success. Check the return value in case of an error.

Example

CTestRun tr = ttsdk.editTestRun(cookie, 0, "Test run summary", false);

try

{

tr.type = "Invalid type";

 

// The following line throws an exception because type is not set as a valid type string.

ttsdk.saveTestRun(cookie, tr);

}

catch (Exception e)

{

ttsdk.cancelSaveTestRun(cookie, tr.recordid);

}