StarterTemplate ASP.NET Host

<back to all web services

RequestTestRunPost

TestRun Service

Adds a new test runThe authenticating user must have the Add privilege for the Test Library.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project you want to add the test run to

To override the Content-type in your clients HTTP Accept Header, append the .soap11 suffix or ?format=soap11

HTTP + SOAP11

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /soap11 HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: RequestTestRunPost

<?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>

<RequestTestRunPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestRuns">
  <ForceNewRunCreation>false</ForceNewRunCreation>
  <IsSequential>false</IsSequential>
  <Parameters>
    <TestRunParameter>
      <Name>String</Name>
      <Value>String</Value>
    </TestRunParameter>
  </Parameters>
  <ProjectId>0</ProjectId>
  <ReleaseId>0</ReleaseId>
  <RunByHostId>0</RunByHostId>
  <TestConfigId>0</TestConfigId>
  <TestId>0</TestId>
  <TestSetId>0</TestSetId>
</RequestTestRunPost>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?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>

<ResponseTestRunSingle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestRuns">
  <Agents>String</Agents>
  <ConfigurationName>String</ConfigurationName>
  <DateFinished>0001-01-01T00:00:00</DateFinished>
  <DateStarted>0001-01-01T00:00:00</DateStarted>
  <ExecutionType>String</ExecutionType>
  <Id>0</Id>
  <IsSequential>false</IsSequential>
  <NbrAwaitingRun>0</NbrAwaitingRun>
  <NbrBlocked>0</NbrBlocked>
  <NbrFailed>0</NbrFailed>
  <NbrPassed>0</NbrPassed>
  <NbrTests>0</NbrTests>
  <ProjectId>0</ProjectId>
  <ReleaseId>0</ReleaseId>
  <ReleaseName>String</ReleaseName>
  <RunByHostId>0</RunByHostId>
  <RunByUserId>0</RunByUserId>
  <RunByUserName>String</RunByUserName>
  <RunTime>0</RunTime>
  <RunTimeFormatted>String</RunTimeFormatted>
  <RunningSince>0001-01-01T00:00:00</RunningSince>
  <ScheduleId>String</ScheduleId>
  <StatusCode>String</StatusCode>
  <TestConfigId>0</TestConfigId>
  <TestHost>String</TestHost>
  <TestSetId>0</TestSetId>
  <TestSetName>String</TestSetName>
</ResponseTestRunSingle>

    </soap:Body>
</soap:Envelope>