saveTestRun

Saves changes made to a test run record and unlocks the record. Use editTestRun or editTestRunByRecordID to start the editing process.

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

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
pTestRun CTestRun Edited test run to save.

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.summary = "Test run summary SOAP EDIT";

 

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

ttsdk.saveTestRun(cookie, tr);

}

catch (Exception e)

{

// The following operation unlocks the record.

ttsdk.cancelSaveTestRun(cookie, tr.recordid);

}