It's all about the answers!

Ask a question

Query TestCase by title using RQM Reportable REST API

Jeff Wilson (1111) | asked Apr 12 '17, 9:51 a.m.

  I'm just getting started with the Reportable REST API, and I can't seem to find a clear example of how to query all TestCases in a Project Area by Title.

I have code that does a GET on the following URL:

https://<MyRqmURL>/service/[title="<my title>"]

    Is this correct?
    This returns with an HTTP Code 200, and the XML response contains the following:

<?xml version="1.0" encoding="UTF-8"?><feed xmlns=""><title type="text">testcase ATOM feed for project area CORPORATE_Strategic_Priority</title><id>https://<MyRqmURL>/service/</id><link href="https://<MyRqmURL>/web/console/" rel="alternate"/><link rel="self" href="https://<MyRqmURL>/service/"/></feed>


What do I do with the response in order to read all Test Cases that match my criteria?

Abhishek Kumar commented Jul 27 '17, 5:54 a.m. | edited Oct 12 '17, 9:57 a.m.

 I am also getting the same issue can someone help??

Donald Nong commented Jul 27 '17, 6:03 a.m.

It has been answered. Have you tried Don's method?

One answer

permanent link
Don Yang (7.7k21110138) | answered Apr 12 '17, 9:19 p.m.

Hi, Jeff

I simply run something like

https://clm602:9443/qm/service/[title='test case 1']/*
in browser and it return the test case named "test case 1".

If I run
https://clm602:9443/qm/service/[title='test case X']/description&wildcard=X

it returns test case 1 and test case 2 (I only have two test cases starting from test case)

qm/service/[title='test case X']/description&wildcard=X

Abhishek Kumar commented Jul 27 '17, 6:24 a.m. | edited Oct 12 '17, 9:58 a.m.


I am trying to query all the test cases with a specific custom attribute value this query is:

The Result i am getting is:

When i provide a filter on the web ui i am getting 1900 test cases with the filter.


Thiruvenkadam Dhanaraj commented Sep 14 '17, 9:17 a.m. | edited Oct 12 '17, 9:59 a.m.

Yes. I tried too. it fetches all the testcases but i would like to get the exact testcase having that custom attribute value.

Is there any way that we can filter out the test case using custom attribute value?


Donald Nong commented Sep 15 '17, 2:00 a.m.

Your request is definitely different from the OP. I suggest you open a new post.

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.