StarterTemplate ASP.NET Host

<back to all web services

RequestTestSetItemPost

TestSetItem Service

Adds test set items (tests) to a test setThe authenticating user must have the Update privilege for the Test Sets.
Parameters:
NameParameterData TypeRequiredDescription
IdpathintYesThe ID of the test set you want to add an item to
ProjectIdpathintYesThe ID of the project that contains the test set

To override the Content-type in your clients HTTP Accept Header, append the .soap11 suffix or ?format=soap11

HTTP + SOAP11

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /soap11 HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: RequestTestSetItemPost

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<RequestTestSetItemPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestSetItems">
  <Id>0</Id>
  <Items>
    <TestSetItemEntity>
      <AssigneeUserId>0</AssigneeUserId>
      <DefaultHostId>0</DefaultHostId>
      <IsActive>false</IsActive>
      <IsStoppedOnFail>false</IsStoppedOnFail>
      <TestId>0</TestId>
      <TestSetItemParams xmlns:d4p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestParams">
        <d4p1:TestParamsDto>
          <d4p1:Name>String</d4p1:Name>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:TestParamsDto>
      </TestSetItemParams>
    </TestSetItemEntity>
  </Items>
  <ProjectId>0</ProjectId>
</RequestTestSetItemPost>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<ResponseTestSetItemCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestSetItems">
  <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.TestSetItems" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common">
    <d2p1:ResponseTestSetItemSingle>
      <d2p1:AssigneeUserId>0</d2p1:AssigneeUserId>
      <d2p1:CreateUserId>0</d2p1:CreateUserId>
      <d2p1:DateCreated>0001-01-01T00:00:00</d2p1:DateCreated>
      <d2p1:DateUpdated>0001-01-01T00:00:00</d2p1:DateUpdated>
      <d2p1:DefaultHostId>0</d2p1:DefaultHostId>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:IsActive>false</d2p1:IsActive>
      <d2p1:IsStoppedOnFail>false</d2p1:IsStoppedOnFail>
      <d2p1:NbrFiles>0</d2p1:NbrFiles>
      <d2p1:NbrNotes>0</d2p1:NbrNotes>
      <d2p1:NbrSteps>0</d2p1:NbrSteps>
      <d2p1:ProjectId>0</d2p1:ProjectId>
      <d2p1:Seq>0</d2p1:Seq>
      <d2p1:TestId>0</d2p1:TestId>
      <d2p1:TestSetId>0</d2p1:TestSetId>
      <d2p1:TestSetItemParams xmlns:d4p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestParams">
        <d4p1:TestParamsDto>
          <d4p1:Name>String</d4p1:Name>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:TestParamsDto>
      </d2p1:TestSetItemParams>
      <d2p1:Title>String</d2p1:Title>
      <d2p1:UpdateUserId>0</d2p1:UpdateUserId>
    </d2p1:ResponseTestSetItemSingle>
  </Results>
</ResponseTestSetItemCollection>

    </soap:Body>
</soap:Envelope>