cancelSaveTestConfig
Unlocks a test configuration record locked by editTestConfig or editTestConfigByRecordID. Does not need to be called if saveTestConfig 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 configuration record ID. |
Return value
Value | Type | Notes |
---|---|---|
result | int | 0 indicates success. Check the return value in case of an error. |
Example
CSystem tConfig = ttsdk.editTestConfig(cookie, "Main configuration");
try
{
tConfig.systemname = "";
// The following line throws an exception if systemname is a required field.
ttsdk.saveTestConfig(cookie, tConfig);
}
catch (Exception e)
{
ttsdk.cancelSaveTestConfig(cookie, tConfig.recordid);
}