editTestConfigByRecordID

Retrieves a test configuration record for editing based on record ID. A saveTestConfig operation must be used with this operation to save any changes to the record. A SOAP error envelope is returned if the operation fails.

To unlock the record without saving changes, use cancelSaveTestConfig.

To edit a test configuration based on name, use editTestConfig.

Parameters

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

Return value

Value Type
pTestConfig CSystem

Example

CSystem tConfig = ttsdk.editTestConfigByRecordID(cookie, 1);

 

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);

}