StarterTemplate ASP.NET Host

<back to all web services

TestSetRunHistoryGetRequest

TestSet Service

The following routes are available for this service:
GET/service/api/v2/projects/{ProjectId}/testsets/{Id}/testrunsReturns test runs for the specified test setThe authenticating user must have the Read privilege for the Test Sets.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project that contains test sets
IdpathintYesThe ID of the test set
FilterquerystringNoThe filter expression to apply to the list of test runs
OffsetqueryintNoThe number of test runs to skip before counting the returned test runs
LimitqueryintNoThe maximum number of test runs 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/TestSetRunHistoryGetRequest HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: application/xml
Content-Length: length

<TestSetRunHistoryGetRequest 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>
</TestSetRunHistoryGetRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ResponseTestRunsCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestRuns">
  <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.TestRuns" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common">
    <d2p1:ResponseTestRunSingle>
      <d2p1:Agents>String</d2p1:Agents>
      <d2p1:ConfigurationName>String</d2p1:ConfigurationName>
      <d2p1:DateFinished>0001-01-01T00:00:00</d2p1:DateFinished>
      <d2p1:DateStarted>0001-01-01T00:00:00</d2p1:DateStarted>
      <d2p1:ExecutionType>String</d2p1:ExecutionType>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:IsSequential>false</d2p1:IsSequential>
      <d2p1:NbrAwaitingRun>0</d2p1:NbrAwaitingRun>
      <d2p1:NbrBlocked>0</d2p1:NbrBlocked>
      <d2p1:NbrFailed>0</d2p1:NbrFailed>
      <d2p1:NbrPassed>0</d2p1:NbrPassed>
      <d2p1:NbrTests>0</d2p1:NbrTests>
      <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:RunningSince>0001-01-01T00:00:00</d2p1:RunningSince>
      <d2p1:ScheduleId>String</d2p1:ScheduleId>
      <d2p1:StatusCode>String</d2p1:StatusCode>
      <d2p1:TestConfigId>0</d2p1:TestConfigId>
      <d2p1:TestHost>String</d2p1:TestHost>
      <d2p1:TestSetId>0</d2p1:TestSetId>
      <d2p1:TestSetName>String</d2p1:TestSetName>
    </d2p1:ResponseTestRunSingle>
  </Results>
</ResponseTestRunsCollection>