API: How to retrieve steps for Manual Test Cases without execution history? (/scenario returns empty list) #3190
Unanswered
maxibello
asked this question in
Questions & Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I am trying to retrieve test case steps programmatically using the Allure TestOps API (Report Service).
I noticed that the endpoint GET /api/rs/testcase/{id}/scenario consistently returns an empty list of steps ("steps": []) for all currect test cases in our project (both Manual and Automated), even though we can clearly see the steps in the TestOps UI.
I managed to find a workaround for test cases that have execution history: I fetch the steps from the latest test result using GET /api/rs/testresult/{resultId}/execution. This works perfectly for automated tests and executed manual tests.
The content of the problem: I cannot retrieve steps for Manual Test Cases that have never been executed (no test result yet). Since they have no history, I cannot use the /execution endpoint, and the /scenario endpoint returns empty data.
Question: Is this expected behavior that /scenario is empty? What is the correct API endpoint to retrieve the "design-time" steps for a Manual Test Case (the steps defined in the UI) before it has been executed?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions