It's all about the answers!

Ask a question

How to extract all testcase IDs along with custom fields associated with respective testcases using REST Api ?


Chaitali Kulkarni (1515) | asked Jan 01 '18, 4:29 a.m.

I want to extract all test case ids and their corresponding custom field( in my case , it is Defect ID) using Rest API

2 answers



permanent link
Mehul Patel (9695) | answered Jan 02 '18, 1:30 a.m.
FORUM MODERATOR

Chaitali,


Please refer Rational Quality Manager Reportable REST API for detailed documentation. Even RQM URL Utility could be helpful to retrieve test case ids and related attributes.

Regards,
Mehul


Comments
Chaitali Kulkarni commented Jan 03 '18, 12:59 a.m.

Hi Mehul,
I tried using RQM URL utility , but when I try to hit URL like : https://<server>:<port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectalias>/testcase?fields=feed/entry/content/testcase/(webId|testplan[@href=<url>])

I got error like this
'testplan[@href' is not recognized as an internal or external command,
operable program or batch file.

Also I tried to hit same URL using Postman REST Client : I got 200 Status code but in response , I am getting "Javascript is either disabled or not available in your Browser", I am not able to login to application using Postman client.


Mehul Patel commented Jan 03 '18, 8:03 a.m.
FORUM MODERATOR

Chailtali,


It seems like you need to clear the authentication while using Poster, are you getting response header 'X-com-ibm-team-repository-web-auth-msg' as 'authrequired'? Or check if you are using the required header as explained in Rational Quality Manager Reportable REST API. I found some web article, check if that helps.

Regards,
Mehul


Chaitali Kulkarni commented Jan 04 '18, 12:25 a.m.

Hi Mehul ,
I can now hit the URL using POSTMAN successfully , but now I have two different URL to achieve my expected output , output of first URL will be input for second one, for the same purpose I am trying to write a script in node js using Request Module , but then I'm getting : Unable to verify first certificate error ...

I have already tried all possible solutions that are available on internet , is there any specific SSL Setting requires for RQM?


permanent link
Mehul Patel (9695) | answered Jan 04 '18, 8:31 a.m.
FORUM MODERATOR

Chaitali,


That error doesn't look specific to RQM unless you have set something specific to your infrastructure, I suggest to check qm.log and get in touch with support if it has some more diagnostic data related to this error.

Regards,
Mehul


Comments
Chaitali Kulkarni commented Jan 04 '18, 9:05 a.m.

Okay Thanks Mehul.

Your answer


Register or to post your answer.