there is a way to do this using the internal API, but you must be aware that it is not supported or documented for public use which means, that you might run into undocumented changes down the line. You can also break a lot of stuff using the internal API but in your case ist’s just a simple GET so no need to worry.
You can use the following endpoint to get the results for a test case by its internal id.
This will return the same info you can see in the test case. Using the fields parameter you can filter the info you get. So if you only want the test cycle and execution key for example, it would be ?fields=key,testRun.
To get the test case id from its key, you can use this.
Originally posted by lokessri on September 06, 2021
Thanks for the solution Josh, is there a chance to break the system if we build automation surrounding this API, as we are looking to get details based on these APIs and have some gating logic built based on the data rendered by this API.
Load that we are trying to add is about 3000 requests around the span 15 minutes
If you stick to GET calls, you’ll be fine in terms of breaking stuff with the calls themselves. But as I mentioned, you should check for any undocumented API changes (in a staging environment) before upgrading to a newer version of ZS, so your automation does not suddenly break down.
I don’t think, that the load should be a problem, but it depends on your infrastructure. When in doubt, test it out (sorry :P). Just do a quick load test and you’ll see, what’s what.
Side note: There are, of course, also a lot of internal PUT/POST endpoints and these can be quite dangerous. I once accidentally removed all priorities and statuses from a project.
Sorry guys, I found the answer and my mistakes. All works as described -
I had to use internal API ../rest/tests/… for getting internal test id and then again internal API for getting all executions, using internal test id as described!
Originally posted by Michael_Timpe on April 08, 2024
Hi,
this seems to be a solution also for what I am looking for. Can you pls tell me on how to do the authentication for this and which URL has to be addressed. I tried with Jira and Zephyr access token. Both doesn’t work. Do I need to take the smartbear URL (app.tm4j.smartbear.com) or the atlassian url (.atlassian.net).