Subscribe Join 180,000+ subscribers and receive articles from our blog about software quality, testing, QA and security. Subscribe

Copy test with new title via the API

Is there a way to use the API to create a new test from an old test?
For example, I have a test titled clientMaster: GET: getAllPrismClientContacts: Positive: api-1.17
and another clientMaster: GET: getAllPrismClientContacts: Positive: api-1.18 and another clientMaster: GET: getAllPrismClientContacts: Positive: api-1.19

When we come out with a new version of our API we want to make clientMaster: GET: getAllPrismClientContacts: Positive: api-1.20 via the API

It is not a new version of the same test since we still need to run the older tests as well.
And since the new version can have different steps and different return codes.

So other than ready all the setting in and creating a new test setting all the setting is there just a call to copy an existing test and change the title?

Probably by using a combination of get_case and add_case?

Thank you, that is the road I started to go down.
I thought it would be a little more picky and I would have to rebuild the json with every fields but looks like I can get the case info, change the title and feed the whole get json right back in as it is.