StarterTemplate ASP.NET Host

<back to all web services

RequestTestParamsGet

The following routes are available for this service:
GET/service/api/v2/projects/{ProjectId}/tests/{Id}/paramsGet a list of the parameters of the testThe test with the specified ID must exist. The authenticating user must have the Read privilege for Test Library.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project that contains the test
IdpathintYesThe ID of the test

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

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

<ResponseTestParamsCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestParams">
  <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.TestParams" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common">
    <d2p1:ResponseTestParams>
      <d2p1:DefaultValue>String</d2p1:DefaultValue>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:Name>String</d2p1:Name>
    </d2p1:ResponseTestParams>
  </Results>
</ResponseTestParamsCollection>