StarterTemplate ASP.NET Host

<back to all web services

TestTestRunItemHistoryGetRequest

Test service

The following routes are available for this service:
GET/service/api/v2/projects/{ProjectId}/tests/{Id}/testrunitemsReturns test run items for the specified testThe authenticating user must have the Read privilege for Test Library.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project that contains tests
IdpathintYesThe ID of the test
FilterquerystringNoThe filter expression to apply to the list of test run items
OffsetqueryintNoThe number of test run items to skip before counting the returned test run items
LimitqueryintNoThe maximum number of test run items to return

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

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

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