Forum Discussion
Same Problem here. I was looking at the REST API but could not figure it out.
I ended transporting everything with the XML export/import. and added pictures and attachments manually.
Not sure how to move executions. It should be possible when I look at the REST API to add executions, but I don't know how to get it out of TM4J/Zephyr Scale.
Sorry I can't help you further.
Not a very intuitive one, but the endpoint GET /testrun/{testRunKey}/testresults can be used to retrieve all executions of a particular test run, assuming you are on Zephyr Scale Server.
For Cloud, there's a GET /testexecutions that should do the trick.
Thanks for this suggestion. Where do you see which cycle has which test resultkey?
We use Zephyr Scale Server.
Right, so on Server you could do something like the pseudo-code below:
var testCycles = GET /testrun/search?query=projectKey = "ABBC" foreach (testCycles in testCycles) { var testExecutions = GET /testrun/{testCycle.key}/testresults // TODO do something with the test executions here }