It's all about the answers!

Ask a question

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

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

I would like to get all categoryTypes for TestCases via REST

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


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.1k12944) | answered Feb 17 '14, 3:30 a.m.
 Hello Joerg, given below is the syntax which can be used to filter test cases by a category..

https://localhost:9443/qm/service/|description|category[@term='Function' and @value='Data entry'])

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

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.


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.

categoryType doesn't suuport filtering on test case. Please refer to

Your answer

Register or to post your answer.