StarterTemplate ASP.NET Host

<back to all web services

RequestTestPost

Test Service

Creates a new testThe authenticating user must have the Add privilege for Test Library.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project you need to add a test to

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

HTTP + SOAP12

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

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

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

<RequestTestPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Tests.V1">
  <Active>false</Active>
  <AssigneeUserId>0</AssigneeUserId>
  <CustomFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common" i:nil="true" />
  <Description>String</Description>
  <ExecutionType>String</ExecutionType>
  <FolderId>0</FolderId>
  <OriginalId>0</OriginalId>
  <Priority>String</Priority>
  <ProjectId>0</ProjectId>
  <Status>String</Status>
  <TestSteps>
    <RequestTestStep>
      <CallToTestParams 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>
      </CallToTestParams>
      <ExpectedResult>String</ExpectedResult>
      <IsStoppedOnFail>false</IsStoppedOnFail>
      <Seq>0</Seq>
      <Step>String</Step>
    </RequestTestStep>
  </TestSteps>
  <TestType>String</TestType>
  <Title>String</Title>
</RequestTestPost>

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

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

<ResponseTestSingle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Tests.V1">
  <Active>false</Active>
  <AssignedToName>String</AssignedToName>
  <AssigneeUserId>0</AssigneeUserId>
  <AvgRunTime>0</AvgRunTime>
  <AvgRunTimeFormated>String</AvgRunTimeFormated>
  <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>
  <DateLastEscalated>0001-01-01T00:00:00</DateLastEscalated>
  <DateUpdated>0001-01-01T00:00:00</DateUpdated>
  <Description>String</Description>
  <ExecutionType>String</ExecutionType>
  <FolderId>0</FolderId>
  <FolderName>String</FolderName>
  <Id>0</Id>
  <ImportId>0</ImportId>
  <LastEscalationRule>String</LastEscalationRule>
  <LastEscalationRuleId>0</LastEscalationRuleId>
  <LastRunByName>String</LastRunByName>
  <LastRunByUserId>0</LastRunByUserId>
  <LastRunDate>0001-01-01T00:00:00</LastRunDate>
  <LastRunStatus>String</LastRunStatus>
  <LastRunTestSet>0</LastRunTestSet>
  <LastRunTestSetTitle>String</LastRunTestSetTitle>
  <NbrEscalations>0</NbrEscalations>
  <NbrEvents>0</NbrEvents>
  <NbrFailStatus>0</NbrFailStatus>
  <NbrFiles>0</NbrFiles>
  <NbrNotes>0</NbrNotes>
  <NbrPassStatus>0</NbrPassStatus>
  <NbrSteps>0</NbrSteps>
  <NbrTimesRun>0</NbrTimesRun>
  <NotesDescription>String</NotesDescription>
  <OriginalId>0</OriginalId>
  <OwnerName>String</OwnerName>
  <OwnerUserId>0</OwnerUserId>
  <Priority>String</Priority>
  <ProjectId>0</ProjectId>
  <Status>String</Status>
  <TestSteps>
    <ResponseTestStep>
      <CallToTestParams 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>
      </CallToTestParams>
      <CreateUserId>0</CreateUserId>
      <DateCreated>0001-01-01T00:00:00</DateCreated>
      <DateUpdated>0001-01-01T00:00:00</DateUpdated>
      <ExpectedResult>String</ExpectedResult>
      <Id>0</Id>
      <IsStoppedOnFail>false</IsStoppedOnFail>
      <NbrFiles>0</NbrFiles>
      <Seq>0</Seq>
      <Step>String</Step>
      <UpdateUserId>0</UpdateUserId>
      <__permissions xmlns:d4p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common">
        <d4p1:Acl>0</d4p1:Acl>
      </__permissions>
    </ResponseTestStep>
  </TestSteps>
  <TestType>String</TestType>
  <Title>String</Title>
  <UpdateUserId>0</UpdateUserId>
  <UserName>String</UserName>
  <Version>0</Version>
  <__permissions xmlns:d2p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common">
    <d2p1:Acl>0</d2p1:Acl>
  </__permissions>
</ResponseTestSingle>

    </soap12:Body>
</soap12:Envelope>