See all operations
POST: projects/{project_id}/test-cases/{test_case_id}/test-steps/multiple
Description
This method adds a collection of test steps, up to 30 at a time
Errors will return for each failed test step giving the error for that specific step with a 1 based index number to identify the problematic test step
How to Execute
To access this REST web service, you need to use the following URL (make sure to replace any parameters (eg {project_id}) with the relevant value (eg 1):
https://api.inflectra.com/Spira/Services/v7_0/RestService.svc/projects/{project_id}/test-cases/{test_case_id}/test-steps/multiple
Request Parameters
|
Name
|
Description
|
|
project_id
|
ID of the project the test case is within
|
|
test_case_id
|
ID of the test case we are adding steps to
|
Request Body
<ArrayOfRemoteTestStep xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v7_0.DataObjects">
<RemoteTestStep>
<ArtifactTypeId>0</ArtifactTypeId>
<ConcurrencyDate>0001-01-01T00:00:00</ConcurrencyDate>
<CustomProperties i:nil="true" />
<Guid i:nil="true" />
<IsAttachments>false</IsAttachments>
<ProjectGuid i:nil="true" />
<ProjectId>0</ProjectId>
<Tags i:nil="true" />
<Description i:nil="true" />
<ExecutionStatusId i:nil="true" />
<ExpectedResult i:nil="true" />
<LastUpdateDate>0001-01-01T00:00:00</LastUpdateDate>
<LinkedTestCaseId i:nil="true" />
<Position>0</Position>
<Precondition i:nil="true" />
<SampleData i:nil="true" />
<TestCaseGuid i:nil="true" />
<TestCaseId>0</TestCaseId>
<TestStepId i:nil="true" />
</RemoteTestStep>
</ArrayOfRemoteTestStep>
[{"TestStepId":null,
"TestCaseId":0,
"TestCaseGuid":null,
"ExecutionStatusId":null,
"Position":0,
"Description":null,
"ExpectedResult":null,
"SampleData":null,
"LinkedTestCaseId":null,
"LastUpdateDate":"0001-01-01T00:00:00",
"Precondition":null,
"ProjectId":0,
"ProjectGuid":null,
"ArtifactTypeId":0,
"ConcurrencyDate":"0001-01-01T00:00:00",
"CustomProperties":null,
"IsAttachments":false,
"Tags":null,
"Guid":null}]
Return Data
The JSON and XML examples below show the shape of one entry that will be returned. It does not show an example of how that entry will be populated.
<ArrayOfRemoteTestStep xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v7_0.DataObjects">
<RemoteTestStep>
<ArtifactTypeId>0</ArtifactTypeId>
<ConcurrencyDate>0001-01-01T00:00:00</ConcurrencyDate>
<CustomProperties i:nil="true" />
<Guid i:nil="true" />
<IsAttachments>false</IsAttachments>
<ProjectGuid i:nil="true" />
<ProjectId>0</ProjectId>
<Tags i:nil="true" />
<Description i:nil="true" />
<ExecutionStatusId i:nil="true" />
<ExpectedResult i:nil="true" />
<LastUpdateDate>0001-01-01T00:00:00</LastUpdateDate>
<LinkedTestCaseId i:nil="true" />
<Position>0</Position>
<Precondition i:nil="true" />
<SampleData i:nil="true" />
<TestCaseGuid i:nil="true" />
<TestCaseId>0</TestCaseId>
<TestStepId i:nil="true" />
</RemoteTestStep>
</ArrayOfRemoteTestStep>
[{"TestStepId":null,
"TestCaseId":0,
"TestCaseGuid":null,
"ExecutionStatusId":null,
"Position":0,
"Description":null,
"ExpectedResult":null,
"SampleData":null,
"LinkedTestCaseId":null,
"LastUpdateDate":"0001-01-01T00:00:00",
"Precondition":null,
"ProjectId":0,
"ProjectGuid":null,
"ArtifactTypeId":0,
"ConcurrencyDate":"0001-01-01T00:00:00",
"CustomProperties":null,
"IsAttachments":false,
"Tags":null,
"Guid":null}]