StarterTemplate ASP.NET Host

<back to all web services

RequestTestSetByIdV2

The following routes are available for this service:
GET/service/api/v2/projects/{ProjectId}/testsets/{Id}Returns a test set by its IDThe test set with the specified ID must exist. The authenticating user must have the Read privilege for Test Sets.
Parameters:
NameParameterData TypeRequiredDescription
IdpathintYesThe ID of the test set you need to get
ProjectIdpathintYesThe ID of the project that contains the test set

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

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

<ResponseTestSetSingle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestSets.V2">
  <ActFinish>0001-01-01T00:00:00</ActFinish>
  <ActHrs>0</ActHrs>
  <ActStart>0001-01-01T00:00:00</ActStart>
  <AllowRun>false</AllowRun>
  <AssignedToName>String</AssignedToName>
  <AssigneeUserId>0</AssigneeUserId>
  <AvgRunTime>0</AvgRunTime>
  <AvgRunTimeFormatted>String</AvgRunTimeFormatted>
  <CreateUserId>0</CreateUserId>
  <CustomFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common" i:nil="true" />
  <DateCreated>0001-01-01T00:00:00</DateCreated>
  <DateUpdated>0001-01-01T00:00:00</DateUpdated>
  <DefaultHostId>0</DefaultHostId>
  <DefaultHostName>String</DefaultHostName>
  <Description>String</Description>
  <EstFinish>0001-01-01T00:00:00</EstFinish>
  <EstHrs>0</EstHrs>
  <EstHrsRemaining>0</EstHrsRemaining>
  <EstStart>0001-01-01T00:00:00</EstStart>
  <ExecutionType>String</ExecutionType>
  <FolderId>0</FolderId>
  <FolderName>String</FolderName>
  <Id>0</Id>
  <ImportId>0</ImportId>
  <IsActive>false</IsActive>
  <IsSequential>false</IsSequential>
  <LastRunByUserId>0</LastRunByUserId>
  <LastRunByUserName>String</LastRunByUserName>
  <LastRunDate>0001-01-01T00:00:00</LastRunDate>
  <LastRunReleaseId>0</LastRunReleaseId>
  <LastRunReleaseName>String</LastRunReleaseName>
  <LastRunStatus>String</LastRunStatus>
  <LastRunTestConfigId>0</LastRunTestConfigId>
  <LastRunTestConfigName>String</LastRunTestConfigName>
  <NbrFiles>0</NbrFiles>
  <NbrNotes>0</NbrNotes>
  <NbrSchedules>0</NbrSchedules>
  <NbrTests>0</NbrTests>
  <NbrTimesRun>0</NbrTimesRun>
  <OriginalId>0</OriginalId>
  <OwnerName>String</OwnerName>
  <OwnerUserId>0</OwnerUserId>
  <PctComplete>0</PctComplete>
  <PriorityCode>String</PriorityCode>
  <ProjectId>0</ProjectId>
  <StatusCode>String</StatusCode>
  <Title>String</Title>
  <UpdateUserId>0</UpdateUserId>
  <UserName>String</UserName>
</ResponseTestSetSingle>