Rqm RestApi: How to update executionresult?
Hi,
I need to update the state of my executionresults via my C# programm. I use Rest to get all testcases in my testsuite compare them with a list of testcaseid´s to find out which to update, then i get the executionworkitem with the resourceurl and then i filter out the currentexecutionresult. I change the resultstate and now i need to make a put call with the same url and the headers:
accept, content-type and if-match.
When i try this with my browser restclient, it works fine, but when i make the same calls in my C# programm i get error 405 method not allowed when i make the put call.
Please help me!
Emil Cavani
|
2 answers
Hi Emil,
It appears that your C# program is using the wrong HTTP method. To update a test artifact using the RQM Reportable REST API, you should be using a HTTP PUT method.
Comments
Emil Cavani
commented Aug 13 '18, 4:34 a.m.
I used the PUT method, but it seems when you put you have to auth first and then send request, not vise versa. Apologies for the delayed response.
Correct. The HTTP client must be authenticated with the Rational Quality Manager server before issuing any HTTP requests.
|
You might get some insight by searching through the CLM API Landing Page: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding
It provides a jumping off point to a lot of the API documentation that's out there.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.