You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hello,
Here is my use case: I need to reset the status of test runs (to become TODO) at the beginning of the tests exection in a batch requests ( I want to avoid setting the status one by one with the graph QL API updateTestRunStatus).
I reverse engineered the request Jira make when multiple test runs are selected from the test execution and it is a POST request to: https://xray.cloud.getxray.app/api/internal/testruns/status
I try to make the same request and I pass "Authorization" header to "Bearer <access_token>" but I get the response: {"error":"Authentication request has expired. Try reloading the page."}
I know that this is an internal API, but if Jira uses it, why can't we? This will save us 99 additional requests as it seems that the maximum number test runs is 100.
I managed to achieve what I wanted using this API
https://docs.getxray.app/display/XRAYCLOUD/Import+Execution+Results+-+REST+v2
Adding all tests in the requests with status "TO DO".
I hope that this could help someone who tried what I did.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.