Skip Navigation LinksForums > SpiraTeam Forums > SpiraTeam Issues & Questi... > How can copy Test Case wi...

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

Tuesday, March 1, 2016
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.setTestSteps(arrayTestStep);
listTestStep = remoteTestCase
for (RemoteTestStep testSteps : listTestStep) {
soap.testCaseCreate(remoteTestCase, copyTestFolderId);
1 Replies
Sarah T.Sarah T.
re: Ha N Nguyen on Tuesday, March 1, 2016
Wednesday, March 2, 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.

  • Started: 3/1/2016
  • Last Reply: 3/2/2016
  • Replies: 1
  • Views: 113
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.