pembertonrw
11 years agoContributor
Clone Existing Test Case Via Groovy Script
I am using soapUI via the maven plugin and I am trying to do the following:
* Get a list of something via rest
* Iterate through the list and
** Clone a test case and rename it
** Run it
** Delete it
What I am struggling with is the cloning of the test case.
I can see that you can use the code:
but I can't seem to get how you can stop the prompt from appearing and just continue onto creating the test case.
* Get a list of something via rest
* Iterate through the list and
** Clone a test case and rename it
** Run it
** Delete it
What I am struggling with is the cloning of the test case.
I can see that you can use the code:
import com.eviware.soapui.impl.wsdl.actions.testcase.CloneTestCaseAction
def slaveTestCase = testRunner.testCase.testSuite.project.getTestSuiteByName("Test Suite").getTestCaseByName("Name")
def ca = new CloneTestCaseAction();
ca.perform(slaveTestCase,Object)
but I can't seem to get how you can stop the prompt from appearing and just continue onto creating the test case.