AutomationRuns_Update Operation

Applies to QAComplete 14.3, last modified on February 19, 2024
This functionality is provided by the automated testing bridge that allows obtaining TestComplete test results to the QAComplete Automation screen.
Starting from the release 9.9.0, this functionality is obsolete and is supported only for backward compatibility.

Gets an automated test run by its ID and updates the run’s properties with specified values. All unspecified properties are cleared.

Requirements

The user must belong to a security group that has the Update privilege for Automation Runs.

Parameters

The operation uses the following parameters:

AuthenticationData  :  object, required

An AuthenticationData object containing the login information and the ID of the project whose automated test run you want to update.

AutomationRun  :  , required

An AutomationRun object that contains the updated run data.

Result

None.

Example

Sample Code

C#

string login = "[email protected]";
string password = "p@ssword";

ServiceSoapClient service = new ServiceSoapClient();

// Prepare AuthenticationData
LoginInfo loginInfo = service.GetLoginInfo("", login, password);
AuthenticationData authData = new AuthenticationData();
authData.AppCode = loginInfo.AppCode;
authData.UserId = loginInfo.UserId;
authData.PassCode = password;
authData.DeptId = loginInfo.DeptId;
authData.ProjId = loginInfo.ProjId;

// Prepare the AutomationRun object
AutomationRun run = new AutomationRun();

// Get the existing run to update
int runId = 1;
run = service.AutomationRuns_Load(authData, runId);

// Specify new values for the run properties
run.NbrPassed = 2;

// Update the run
service.AutomationRuns_Update(authData, run);

Java

String login = "[email protected]";
String password = "p@ssword";

ServiceSoap service = new Service().getServiceSoap12();

// Prepare AuthenticationData
LoginInfo loginInfo = service.getLoginInfo("", login, password);
AuthenticationData authData = new AuthenticationData();
authData.setAppCode(loginInfo.getAppCode());
authData.setUserId(loginInfo.getUserId());
authData.setPassCode(password);
authData.setDeptId(loginInfo.getDeptId());
authData.setProjId(loginInfo.getProjId());

// Prepare the AutomationRun object
AutomationRun run = new AutomationRun();

// Get the existing run to update
int runId = 1;
run = service.automationRunsLoad(authData, runId);

// Specify new values for run properties
run.setNbrPassed(2);

// Update the run
service.automationRunsUpdate(authData, run);

Sample Request XML

POST /psws/psws.asmx HTTP/1.1
Host: myteam.mysite.com
Content-Type: text/xml; charset=utf-8
Content-Length: 1056 {Insert an appropriate value here}
SOAPAction: "http://www.pragmaticsw.com/AutomationRuns_Update"
 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AutomationRuns_Update xmlns="http://www.pragmaticsw.com/">
      <AuthenticationData>
      </AuthenticationData>
      <AutomationRun>
        <AutomationRunId>1</AutomationRunId>
        <AutomationTestItemId>1</AutomationTestItemId>
        <AutomationHostId>1</AutomationHostId>
        <Status>Passed</Status>
        <FullTestName>Full Regression</FullTestName>
        <NbrTests>1</NbrTests>
        <NbrPassed>2</NbrPassed>
        <NbrFailed>0</NbrFailed>
        <DurationInSecs>36</DurationInSecs>
        <AutomationHostName>TestHost-WinXPx86</AutomationHostName>
        <FileId>132</FileId>
        <StartTime>2014-07-21T08:06:12</StartTime>
        <EndTime>2014-07-21T08:06:48</EndTime>
        <CreateUserId>24661</CreateUserId>
        <UpdateUserId>24661</UpdateUserId>
        <DateCreated>2014-07-21T08:06:48</DateCreated>
        <DateUpdated>2014-07-21T09:47:42</DateUpdated>
        <AutomationType>TestComplete</AutomationType>
      </AutomationRun>
    </AutomationRuns_Update>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

POST /psws/psws.asmx HTTP/1.1
Host: myteam.mysite.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 1064 {Insert an appropriate value here}
 

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <AutomationRuns_Update xmlns="http://www.pragmaticsw.com/">
      <AuthenticationData>
      </AuthenticationData>
      <AutomationRun>
        <AutomationRunId>1</AutomationRunId>
        <AutomationTestItemId>1</AutomationTestItemId>
        <AutomationHostId>1</AutomationHostId>
        <Status>Passed</Status>
        <FullTestName>Full Regression</FullTestName>
        <NbrTests>1</NbrTests>
        <NbrPassed>2</NbrPassed>
        <NbrFailed>0</NbrFailed>
        <DurationInSecs>36</DurationInSecs>
        <AutomationHostName>TestHost-WinXPx86</AutomationHostName>
        <FileId>132</FileId>
        <StartTime>2014-07-21T08:06:12</StartTime>
        <EndTime>2014-07-21T08:06:48</EndTime>
        <CreateUserId>24661</CreateUserId>
        <UpdateUserId>24661</UpdateUserId>
        <DateCreated>2014-07-21T08:06:48</DateCreated>
        <DateUpdated>2014-07-21T09:47:42</DateUpdated>
        <AutomationType>TestComplete</AutomationType>
      </AutomationRun>
    </AutomationRuns_Update>
  </soap12:Body>
</soap12:Envelope>

Sample Response XML

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 315 {The server returns an appropriate value here}
 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AutomationRuns_UpdateResponse xmlns="http://www.pragmaticsw.com/" />
  </soap:Body>
</soap:Envelope>

SOAP 1.2

HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 325 {The server returns an appropriate value here}
 

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <AutomationRuns_UpdateResponse xmlns="http://www.pragmaticsw.com/" />
  </soap12:Body>
</soap12:Envelope>

See Also

AutomationRuns_Add
AutomationRuns_Delete
AutomationRuns_Load
AutomationRuns_LoadByCriteria
Automated Testing Bridge Operations
SOAP API Reference

Highlight search results