How to update a test case state using REST API?
Hello all,
I have a test case which can have multiple state actions like "In Work" "Blocked" "Retired" etc, how can I use REST API in order to update this state automatically? Any how-to on the web for this thing?
I want to create a sistem that verify if testcase match with the requirement regarding an attribute(already done with REST API) and if in case it doesn't match, the testcase must be updated and as a rule the testcase cannot be updated if it isn't in a state like 'In progress" or "In Work".
Any ideas?
One answer
There are two REST APIs supported by ETM. The OSLC and the Reportable REST API. As Michael pointed out in his comment, you probably want to read up on these APIs. The ETM reportable REST API supports PUT and POST (which is quite surprising).
I have only very limited experience with the ETM APIs, but I have used the EWM OSLC API to update the state. See https://rsjazz.wordpress.com/2022/02/02/ewm-work-item-oslc-cm-api/ . I would assume the ETM OSLC API works in a similar way.
Comments
Michael Rowe
FORUM ADMINISTRATOR / FORUM MODERATOR Jul 08, 4:36 p.m.I would suggest you start by looking at the ELM API Landing page - https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding