StarterTemplate ASP.NET Host

<back to all web services

RequestRunItemPatchV2

The following routes are available for this service:
PATCH/service/automation/v2/hosts/{HostId}/runs/{RunId}/items/{SequenceNumber}Updates the test run statusThe authenticating user must have Read access to Test Hosts.
    RequestRunItemPatchV2: Updated information about the test run.
  • Status: ['Passed' or 'Failed' or 'Blocked' or 'Skipped' or 'NA']: The test status.
  • DateStarted: The UTC date and time the test started, in the ISO 8601 format.
  • DateFinished: The UTC date and time the test finished, in the ISO 8601 format.
  • RunTime: The test's run time in seconds.
  • TestRunResults: The test step results.

    RequestRunResultPatch
  • Status: ['Passed' or 'Failed' or 'Blocked' or 'Skipped' or 'NA']: The test step status.
  • ActualResult: The actual results of the test step.
  • Step: The test step description.
  • ExpectedResult: The expected results of the test step.
Parameters:
NameParameterData TypeRequiredDescription
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/reply/RequestRunItemPatchV2 HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: application/xml
Content-Length: length

<RequestRunItemPatchV2 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>
  <DateFinished xmlns="http://schemas.datacontract.org/2004/07/SwpStack.AutomationService.DTO.Common.TestRunItem">0001-01-01T00:00:00</DateFinished>
  <DateStarted xmlns="http://schemas.datacontract.org/2004/07/SwpStack.AutomationService.DTO.Common.TestRunItem">0001-01-01T00:00:00</DateStarted>
  <RunTime xmlns="http://schemas.datacontract.org/2004/07/SwpStack.AutomationService.DTO.Common.TestRunItem">0</RunTime>
  <Status xmlns="http://schemas.datacontract.org/2004/07/SwpStack.AutomationService.DTO.Common.TestRunItem">String</Status>
  <TestRunResults xmlns="http://schemas.datacontract.org/2004/07/SwpStack.AutomationService.DTO.Common.TestRunItem">
    <RequestRunResultPatch>
      <ActualResult>String</ActualResult>
      <ExpectedResult>String</ExpectedResult>
      <Status>String</Status>
      <Step>String</Step>
      <StepCriteria>String</StepCriteria>
    </RequestRunResultPatch>
  </TestRunResults>
</RequestRunItemPatchV2>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ResponseSingleRunItemBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.AutomationService.DTO.Common.TestRunItem">
  <DateFinished>0001-01-01T00:00:00</DateFinished>
  <DateStarted>0001-01-01T00:00:00</DateStarted>
  <RunTime>0</RunTime>
  <SequenceNumber>0</SequenceNumber>
  <Status>String</Status>
  <StopOnFail>false</StopOnFail>
  <TestRunResults>
    <ResponseSingleRunResult>
      <ActualResult>String</ActualResult>
      <ExpectedResult>String</ExpectedResult>
      <SequenceNumber>0</SequenceNumber>
      <Status>String</Status>
      <Step>String</Step>
      <StopOnFail>false</StopOnFail>
    </ResponseSingleRunResult>
  </TestRunResults>
</ResponseSingleRunItemBase>