AutomationRuns_Load Operation

Applies to QAComplete 14.5, last modified on August 06, 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.

Returns the AutomationRun object that contains information on the automated test run specified by its ID.

To specify a project that contains the link item, use the ProjId value in the AuthenticationData object in the request body. To search for the link item in several projects, use the ProjIds value to specify the list of projects IDs in the AuthenticationData object.

Requirements

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

Parameters

The operation uses the following parameters:

AuthenticationData  :  , required

An AuthenticationData object with the login information and the ID of the project (or the list of project IDs) whose automated test run you want to get.

AutomationHostId  :  integer, required

The ID of the automated test run you want to get.

Result

The AutomationRun object that stores information on the needed automated test run.

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;

// ID of the desired automated test run
int runId = 1;

// Get the AutomationRun object
AutomationRun run = service.AutomationRuns_Load(authData, runId);
Console.WriteLine(run.FullTestName);

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

// ID of the desired automated test run
int runId = 1;

// Get the AutomationRun object
AutomationRun run = new AutomationRun();
run = service.automationRunsLoad(authData, runId);
System.out.println(run.getFullTestName());

Sample Request XML

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

<?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_Load xmlns="http://www.pragmaticsw.com/">
      <AuthenticationData>
        <AppCode>agSP</AppCode>
        <DeptId>8162</DeptId>
        <ProjId>11873</ProjId>
        <UserId>24661</UserId>
        <PassCode>p@ssword</PassCode>
      </AuthenticationData>
      <AutomationHostId>1</AutomationHostId>
    </AutomationRuns_Load>
  </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: 529 {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_Load xmlns="http://www.pragmaticsw.com/">
      <AuthenticationData>
        <AppCode>agSP</AppCode>
        <DeptId>8162</DeptId>
        <ProjId>11873</ProjId>
        <UserId>24661</UserId>
        <PassCode>p@ssword</PassCode>
      </AuthenticationData>
      <AutomationHostId>1</AutomationHostId>
    </AutomationRuns_Load>
  </soap12:Body>
</soap12:Envelope>

Sample Response XML

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 1051 {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_LoadResponse xmlns="http://www.pragmaticsw.com/">
      <AutomationRuns_LoadResult>
        <AutomationRunId>1</AutomationRunId>
        <AutomationTestItemId>1</AutomationTestItemId>
        <AutomationHostId>1</AutomationHostId>
        <Status>Passed</Status>
        <FullTestName>Full Regression</FullTestName>
        <NbrTests>1</NbrTests>
        <NbrPassed>1</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>
      </AutomationRuns_LoadResult>
    </AutomationRuns_LoadResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 1061 {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_LoadResponse xmlns="http://www.pragmaticsw.com/">
      <AutomationRuns_LoadResult>
        <AutomationRunId>1</AutomationRunId>
        <AutomationTestItemId>1</AutomationTestItemId>
        <AutomationHostId>1</AutomationHostId>
        <Status>Passed</Status>
        <FullTestName>Full Regression</FullTestName>
        <NbrTests>1</NbrTests>
        <NbrPassed>1</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>
      </AutomationRuns_LoadResult>
    </AutomationRuns_LoadResponse>
  </soap12:Body>
</soap12:Envelope>

See Also

AutomationRuns_Add
AutomationRuns_Delete
AutomationRuns_LoadByCriteria
AutomationRuns_Update
Automated Testing Bridge Operations
SOAP API Reference

Highlight search results