Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link

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.


0 votes


Permanent link

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.

0 votes

Comments

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.

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,930
× 478
× 218
× 17
× 16
× 7

Question asked: Aug 09 '18, 9:00 a.m.

Question was seen: 3,333 times

Last updated: Sep 06 '18, 8:13 a.m.

Confirmation Cancel Confirm