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

Could I use tools to test RQM's REST API ?

I use soapUI and Chrome's plugin Advanced REST client to test RQM's REST API and input this URL

https://jazz/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/test1/testcase/urn:com.ibm.rqm:testcase:1

It shows return code 200, but I cannot see the detail test case data. I think it's due to I didn't input the username/password, but I'm not sure how to do it. Is there any document for it?

I find https://jazz.net/library/article/1376, but I don't understand how to implement "4. Authenticating RQM Server" section...


0 votes


Accepted answer

Permanent link
If you got an HTTP 200 return code, the server must have already returned some content to the client. Did you actually get redirected to the login page (in this case there will be a "redirect" section above the "status" section in Advanced Rest Client)? If true, you need to log on first. The easiest way to do it is log on normally in the web UI using the same browser. This works with Chrome/Firefox along with their respective REST clients.
If you need to do scripting later on, for example using Perl, you do need to spend time to study the HTTP return code and how contents are sent to and returned from the server, along with the authentication method mentioned in the jazz.net article. The browser actually does quite a few things behind the scene when you use a REST client plugin, such as handling cookies, but with scripting, you need to do everything yourself.
dennys hsieh selected this answer as the correct answer

1 vote

Comments

After login again (the original session is expired), I can use Chrome's plugin to test the API, thanks.


2 other answers

Permanent link
See RQM Reportable REST API.  I would suggest using the Poster or HTTP Requester plug-ins for Firefox.  When using one of these plug-ins, you simply have to log into RQM using Firefox to authenticate your REST API requests.

2 votes


Permanent link
Another alternative is RQM URL Utility

https://jazz.net/wiki/bin/view/Main/RQMURLUtility

1 vote

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,938
× 479

Question asked: Sep 04 '14, 2:12 a.m.

Question was seen: 5,550 times

Last updated: Sep 04 '14, 9:52 p.m.

Confirmation Cancel Confirm