RQM: How to filter for scope='TestCase' for categoryTypes using REST?
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
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
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
Comments
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
categoryType doesn't suuport filtering on test case. Please refer to https://jazz.net/wiki/bin/view/Main/RqmApi#SupportedFieldsResources