It's all about the answers!

Ask a question

RQM: How to filter for scope='TestCase' for categoryTypes using REST?


Jörg Werner (3033881) | asked Feb 17 '14, 3:26 a.m.
Hello,

I would like to get all categoryTypes for TestCases via REST

The following URL will get a certain category for all test artifacts.

<IntegrationUrl>/resources/RQM_Import_Test/categoryType?fields=feed/entry/content/categoryType[title='City']/title

How can I filter for test cases. something like scope='TestCase' must be probably included in the URL, but what is the syntax? 'scope' itself is no filter property of categoryType.

   thanks, Joerg

Accepted answer


permanent link
Sunil Kumar R (1.1k13344) | answered Feb 17 '14, 3:30 a.m.
JAZZ DEVELOPER
 Hello Joerg, given below is the syntax which can be used to filter test cases by a category..

https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testcase?fields=feed/entry/content/testcase/(title|description|category[@term='Function' and @value='Data entry'])

Best Regards, Sunil
Jörg Werner selected this answer as the correct answer

Comments
Jörg Werner commented Feb 17 '14, 3:44 a.m.

Hi Sunil,

thanks. But I do not want filter test cases with a certain category.

I would like to get all defined category types for test cases in general.

<integrationurl>/resources/RQM_Import_Test/categoryType?fields=feed/entry/content/categoryType[title='City']/title

This url gets also CategoryTypes for test plans, test suites, ...
The 'scope' should be 'TestCase'.

  Regards, Jörg


Chong Yuan Yin commented Feb 19 '14, 5:06 a.m.
JAZZ DEVELOPER

categoryType doesn't suuport filtering on test case. Please refer to https://jazz.net/wiki/bin/view/Main/RqmApi#SupportedFieldsResources

Your answer


Register or 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.