How can copy Test Case with test steps using Spira v4.x SOAP web services

Tuesday, March 1, 2016
Avatar
I use Spira v4.x SOAP to copy test case to another folder . But new test case that is copied without test steps
How can copy Test Case with test steps using  Spira v4.x SOAP web services

this method i'm using:

int copyTestFolderId = 368549;

                    if (originalTestCaseId == 343652) {
remoteTestCase.setTestCaseId(null);
// remoteTestCase.setTestSteps(arrayTestStep);
 
listTestStep = remoteTestCase
.getTestSteps().getValue().getRemoteTestStep();
for (RemoteTestStep testSteps : listTestStep) {
System.out.println(testSteps.getTestStepId().getValue());
}
 
soap.testCaseCreate(remoteTestCase, copyTestFolderId);
                     }
1 Replies
Wednesday, March 2, 2016
Avatar
inflectra.sarahx
re: ngocha1088 Tuesday, March 1, 2016
Hi Ha

You need to use the  soap.testCaseAddStep function to add the test steps.

So loop through each step in the test case and then add them.

Regards
Sarah 

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Tuesday, March 1, 2016
  • Last Reply: Wednesday, March 2, 2016
  • Replies: 1
  • Views: 1683