StarterTemplate ASP.NET Host

<back to all web services

RequestTestRunItemPut

TestRunItem Service

The following routes are available for this service:
PUT/service/api/v2/projects/{ProjectId}/testruns/{Id}/items/{ItemId}Updates the test run itemThe authenticating user must have the Update privilege for the Test Library.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project that contains the test run
IdpathintYesThe ID of the test run that contains the item
ItemIdpathintYesThe ID of the test run item that has the fields you need to update

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

<RequestTestRunItemPut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestRunItems">
  <Critical>false</Critical>
  <Id>0</Id>
  <ItemId>0</ItemId>
  <ProjectId>0</ProjectId>
  <RunByHostId>0</RunByHostId>
  <RunByUserId>0</RunByUserId>
  <RunTime>0</RunTime>
  <SaveToTestLibrary>false</SaveToTestLibrary>
  <StatusCode>String</StatusCode>
  <Steps>
    <TestStepItem>
      <ActualResult>String</ActualResult>
      <Critical>false</Critical>
      <ExpectedResult>String</ExpectedResult>
      <Seq>0</Seq>
      <StatusCode>String</StatusCode>
      <StepCriteria>String</StepCriteria>
      <StepName>String</StepName>
      <TestRunResultId>0</TestRunResultId>
      <TestStepId>0</TestStepId>
    </TestStepItem>
  </Steps>
</RequestTestRunItemPut>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<TestRunItemResponseSingle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestRunItems">
  <Automated>false</Automated>
  <AvgRunTime>0</AvgRunTime>
  <AvgRunTimeFormatted>String</AvgRunTimeFormatted>
  <ConfigurationName>String</ConfigurationName>
  <DateFinished>0001-01-01T00:00:00</DateFinished>
  <DateStarted>0001-01-01T00:00:00</DateStarted>
  <FileLog>String</FileLog>
  <FileReport>String</FileReport>
  <FolderName>String</FolderName>
  <Id>0</Id>
  <IsStoppedOnFail>false</IsStoppedOnFail>
  <IsTokenized>false</IsTokenized>
  <IterationCnt>0</IterationCnt>
  <LastRunByName>String</LastRunByName>
  <LastRunDate>0001-01-01T00:00:00</LastRunDate>
  <LastRunStatus>String</LastRunStatus>
  <ProjectId>0</ProjectId>
  <ReleaseId>0</ReleaseId>
  <ReleaseName>String</ReleaseName>
  <RunByHostId>0</RunByHostId>
  <RunByUserId>0</RunByUserId>
  <RunByUserName>String</RunByUserName>
  <RunTime>0</RunTime>
  <RunTimeFormatted>String</RunTimeFormatted>
  <SeqToken>0</SeqToken>
  <SequenceNumber>0</SequenceNumber>
  <StatusCode>String</StatusCode>
  <StatusUpdatedBy>0</StatusUpdatedBy>
  <StatusUpdatedByUserName>String</StatusUpdatedByUserName>
  <TestConfigId>0</TestConfigId>
  <TestDescription>String</TestDescription>
  <TestHost>String</TestHost>
  <TestId>0</TestId>
  <TestName>String</TestName>
  <TestRunId>0</TestRunId>
  <TestRunResults xmlns:d2p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestRunResults">
    <d2p1:TestRunResultResponseSingle>
      <d2p1:ActualResult>String</d2p1:ActualResult>
      <d2p1:ExpectedResult>String</d2p1:ExpectedResult>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:IsStoppedOnFail>false</d2p1:IsStoppedOnFail>
      <d2p1:IsTokenized>false</d2p1:IsTokenized>
      <d2p1:IterationCnt>0</d2p1:IterationCnt>
      <d2p1:ProjectId>0</d2p1:ProjectId>
      <d2p1:Seq>0</d2p1:Seq>
      <d2p1:StatusCode>String</d2p1:StatusCode>
      <d2p1:Step>String</d2p1:Step>
      <d2p1:StepCriteria>String</d2p1:StepCriteria>
      <d2p1:TestRunItemId>0</d2p1:TestRunItemId>
      <d2p1:TestStepId>0</d2p1:TestStepId>
    </d2p1:TestRunResultResponseSingle>
  </TestRunResults>
  <TestRunStarted>0001-01-01T00:00:00</TestRunStarted>
  <TestSetId>0</TestSetId>
  <TestSetName>String</TestSetName>
  <Version>0</Version>
</TestRunItemResponseSingle>