Ask a Question

Need a Feature to Clone a Test Step to Multiple Target Test Cases

Need a Feature to Clone a Test Step to Multiple Target Test Cases

https://community.smartbear.com/t5/SoapUI-Pro/Clone-at-multiple-test-cases/m-p/27262

 

In reference to the above thread creating an idea to vote it up and get the feature added to SoapUI. Currently, when cloning, only one target TestCase can be selected. If we have the ability to clone a test step to multiple target test cases, user will not have to perform cloning action multiple times.

1 Comment
socaltester
Contributor

This would be nice. In the meantime, have you created a groovy script to do this? I found the following for cloning a test case into multiple test suites and I think all I need to do is add the test step portion (getTestStepByName ??) to complete it.

def slaveTestCase = testRunner.testCase.testSuite.project.getTestSuiteByName("Test Suite").getTestCaseByName("Name")
testRunner.testCase.testSuite.project.getTestSuiteByName("Test Suite").cloneTestCase(slaveTestCase,"NewName")

Relate links I found:

https://community.smartbear.com/t5/SoapUI-Pro/Is-there-a-way-to-clone-the-test-steps-to-other-test-c...

https://community.smartbear.com/t5/SoapUI-Open-Source/Clone-Existing-Test-Case-Via-Groovy-Script/td-...

Announcements
Welcome to the ReadyAPI Feature Requests board!

Here you can review submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Welcome to the Community
Sign Up Here