saveTestConfig

Saves changes made to a test configuration record and unlocks the record. Use editTestConfig or editTestConfigByRecordID to start the editing process.

A SOAP error envelope is returned if the operation fails. If the operation fails, use cancelSaveTestConfig to unlock the record instead.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
pTestConfig CSystem Edited test configuration to save.

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.computerbrand = "Brand";

 

// The following line throws an exception if the operation fails.

ttsdk.saveTestConfig(cookie, tConfig);

}

catch (Exception e)

{

// The following operation unlocks the record.

ttsdk.cancelSaveTestConfig(cookie, tConfig.recordid);

}