It's all about the answers!

Ask a question

Rqm RestApi: How to update executionresult?

Emil Cavani (1113) | asked Aug 09 '18, 9:00 a.m.


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

permanent link
Paul Slauenwhite (8.4k12) | answered Aug 10 '18, 9:52 a.m.

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.

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.

Paul Slauenwhite commented Sep 06 '18, 8:13 a.m.

Apologies for the delayed response.

Correct.  The HTTP client must be authenticated with the Rational Quality Manager server before issuing any HTTP requests.

permanent link
Jim Ruehlin (79114) | answered Aug 10 '18, 10:53 a.m.

You might get some insight by searching through the CLM API Landing Page:

It provides a jumping off point to a lot of the API documentation that's out there.

Your answer

Register or to post your answer.