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/com.ibm.rqm.integration.service.IIntegrationService/resources/CORPORATE_Strategic_Priority/testcase?fields=feed/entry/content/testcase[title="<my title>"]

</pre>
<div>
    Is this correct?
</div>
<div>
    <br>
</div>
<div>
    This returns with an HTTP Code 200, and the XML response contains the following:
</div>
<div>
    <br>
</div>
<pre>

<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">testcase ATOM feed for project area CORPORATE_Strategic_Priority</title><id>https://<MyRqmURL>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/CORPORATE_Strategic_Priority/testcase</id><link href="https://<MyRqmURL>/web/console/" rel="alternate"/><link rel="self" href="https://<MyRqmURL>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/CORPORATE_Strategic_Priority/testcase?fields=feed%2Fentry%2Fcontent%2Ftestcase%5Btitle%3D%22BDD%3AThis+is+a+Test+Case-12345%22%5D"/></feed>

</pre>


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


Comments
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/com.ibm.rqm.integration.service.IIntegrationService/resources/RQM_ProjectArea/testcase?fields=feed/entry/content/testcase[title='test case 1']/*
in browser and it return the test case named "test case 1".

If I run
https://clm602:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/RQM_ProjectArea/testcase?fields=feed/entry/content/testcase[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/com.ibm.rqm.integration.service.IIntegrationService/resources/RQM_TW/testcase?fields=feed/entry/content/testcase[title='test case X']/description&wildcard=X


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

Hello,


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.

Thanks.


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?

Thanks


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.