Forum Discussion

whitecloud's avatar
whitecloud
Occasional Contributor
13 years ago

How to clone one test case to multiple in automation way?

Hello,

In soapUI, i have a test case A which has test step, rest request, assertions..... now I would like to create 200 test cases which are exactly same as test case A except the test case name. Besides manually creating them one by one using clone function, I am wondering if I could use groovy script or any way to automate this which will save lots of time?

Thanks for any help!

1 Reply

  • whitecloud's avatar
    whitecloud
    Occasional Contributor
    Any idea?

    Since I often need to create large amount of repetitive test cases (most times they are almost same except testCaseName), I really hope to be able to do it automatically using SoapUI API. Another way is to parse the SoapUI testSuite xml file, retrieve test case node and append cloned node, which is not idea way I think.

    Thanks.