Forum Discussion
KarelHusa
3 years agoChampion Level 1
Ganitha ,
you can automate this by a Groovy script:
project = context.getTestCase().getTestSuite().getProject()
step = project.getTestSuiteByName("MySuite").getTestCaseByName("MyCase").getTestStepByName("ToBeCloned")
project.getTestSuiteList().each {
testSuite = it
testSuite.getTestCaseList().each {
testCase = it
testCase.cloneStep(step, "TheNameOfTheCloned")
}
}
How it works:
- First get a test step you want to clone (ToBeCloned)
- Go through all test suites
- Loop through all test cases within the suite
- Clone a selected test step into current test case (you can set a new name)
I recommend to do a backup of your SoapUI project.
Then you can place this script into a Groovy script test step, modify the names a run it.
Best regards,
Karel
Related Content
- 7 years ago
- 2 years ago
Recent Discussions
- 2 hours ago
- 16 days ago