SpiraPlan: REST Web Service (v5.0)
Maps a test set to a test case, so that the test case is part of the test set
You can only pass in a test case id not a test case folder id
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/v5_0/RestService.svc/projects/{project_id}/test-sets/{test_set_id}/test-case-mapping/{test_case_id}?owner_id={owner_id}&existing_test_set_test_case_id={existing_test_set_test_case_id}
<ArrayOfRemoteTestSetTestCaseParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v5_0.DataObjects"> <RemoteTestSetTestCaseParameter> <Name i:nil="true" /> <TestCaseParameterId>0</TestCaseParameterId> <TestSetTestCaseId>0</TestSetTestCaseId> <Value i:nil="true" /> </RemoteTestSetTestCaseParameter> </ArrayOfRemoteTestSetTestCaseParameter>
[{"Name":null, "TestCaseParameterId":0, "TestSetTestCaseId":0, "Value":null}]
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.
<ArrayOfRemoteTestSetTestCaseMapping xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v5_0.DataObjects"> <RemoteTestSetTestCaseMapping> <OwnerId i:nil="true" /> <TestCaseId>0</TestCaseId> <TestSetId>0</TestSetId> <TestSetTestCaseId>0</TestSetTestCaseId> </RemoteTestSetTestCaseMapping> </ArrayOfRemoteTestSetTestCaseMapping>
[{"OwnerId":null, "TestCaseId":0, "TestSetId":0, "TestSetTestCaseId":0}]