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

Tuesday, March 1, 2016 8:13:25 AM
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 5:44:16 PM
Avatar
re: ngocha1088 on Tuesday, March 1, 2016 8:13:25 AM
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 
Statistics
  • Started: Tuesday, March 1, 2016 8:13:25 AM
  • Last Reply: Wednesday, March 2, 2016 5:44:16 PM
  • Replies: 1
  • Views: 237