editTestConfig
Retrieves a test configuration record for editing based on name. A saveTestConfig operation must be used with this operation to save any changes made 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 config based on record ID, use editTestConfigByRecordID.
Parameters
Parameter | Type | Description |
---|---|---|
cookie | long | Session cookie returned by projectLogon. |
name | string | Name of the test configuration to edit. If the name matches more than one test config, the operation fails. |
Return value
Value | Type |
---|---|
pTestConfig | CSystem |
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);
}