StarterTemplate ASP.NET Host

<back to all web services

RequestTestRunRestartPost

TestRun Service

The following routes are available for this service:
POST/service/api/v2/projects/{ProjectId}/testruns/{Id}/restartRestarts the test runThe authenticating user must have the Add privilege for the Test Library.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe project that contains the test run which is going to be restarted
IdpathintYesThe ID of the test run you want to restart

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

HTTP + XML

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

POST /xml/reply/RequestTestRunRestartPost HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: application/xml
Content-Length: length

<RequestTestRunRestartPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestRuns">
  <Id>0</Id>
  <ProjectId>0</ProjectId>
</RequestTestRunRestartPost>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

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