StarterTemplate ASP.NET Host

<back to all web services

RequestRunItemScriptV2

TestRunItems Service

The following routes are available for this service:
GET/service/automation/v2/hosts/{HostId}/runs/{RunId}/items/{SequenceNumber}/scriptReturns an automation script assigned to the test
Parameters:
NameParameterData TypeRequiredDescription
AgentquerystringYesThe agent you use to run the automated test.
SequenceNumberpathintYesThe 1-based index of the item in the test run
RunIdpathintYesThe ID of the test run that contains the script you need to get
HostIdpathintYesThe ID of the host computer

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/oneway/RequestRunItemScriptV2 HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: application/xml
Content-Length: length

<RequestRunItemScriptV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.AutomationService.DTO.V2.TestRunItem">
  <HostId xmlns="http://schemas.datacontract.org/2004/07/SwpStack.AutomationService.DTO.Common.TestRunItem">0</HostId>
  <RunId xmlns="http://schemas.datacontract.org/2004/07/SwpStack.AutomationService.DTO.Common.TestRunItem">0</RunId>
  <SequenceNumber xmlns="http://schemas.datacontract.org/2004/07/SwpStack.AutomationService.DTO.Common.TestRunItem">0</SequenceNumber>
  <Agent xmlns="http://schemas.datacontract.org/2004/07/SwpStack.AutomationService.DTO.Common.TestRunItem">String</Agent>
</RequestRunItemScriptV2>