Add "UPDATE" public API endpoint for Test runs
complete
S
Sharon Peretz
Edited by Qase Support
Description:
Currently, public API allows creating new test runs but does _not_ support updating an existing one.
- An ability to add more test cases to an ongoing test run instead of creating a new one.
Use Case:
- For teams that automate the process of creating a manual test run using public API, this endpoint will enable test cases to be updated without having to create a new test run.
- To update the description of a test run, post run's creation.
Jen Nelson
Manjunatha Reddy Is there a plan to add support for updating the list of cases in a test run? This would be very helpful for our automation that we have built to generate a test run for a release based linking between Jira tickets and Qase tests.
Manjunatha Reddy
Hello, Jen Nelson,
Unfortunately, option in this endpoint for editing cases in an active test run is not planned due to (I could be wrong here, but I suppose) the complexity of managing existing results.
For example, if you change the list of cases mid-run, how should the system handle the results already recorded for the cases that are removed?
To help us understand your need and discuss it with the team, could you share:
Your preference for how the system should handle existing results when cases are edited.
More details on where this case-editing ability fits into your workflow.
I will pass your feedback on to the team. Thank you :)
Jen Nelson
Manjunatha Reddy We rely on the public API to automate the generation of our test runs. Our most important scenario that we hope to cover with the UPDATE endpoint is to avoid missing any tests that should be a part of our release testing. After initial generation of our test run, if a new Jira ticket gets added to a release then we have manually ensure that all appropriate test cases get added to the release test run. It is not uncommon for scope to change slightly after we have created the first pass of the test run.
We would like the UPDATE endpoint to allow us to pass in a new set of test cases to get added to the run. I would not expect it to remove any existing test cases, only to ensure that the test cases in the API call are present in the run. As for existing test results, it would be great if the results could persist for test cases that already existed in the run (even if they are also included in the API call's test case list).
Manjunatha Reddy
marked this post as
complete
Manjunatha Reddy
Hello everyone,
We now have an Update endpoint available for test runs. This allows you to update a test run’s title or description after it has been created.
However, updating the list of cases in a test run is not yet supported.
Another endpoint which allows linking the test run to external issues, is also added.
Thank you for your post and upvotes!