Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Query TestCase by title using RQM Reportable REST API

  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?

0 votes

Comments

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

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



One answer

Permanent link

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

0 votes

Comments

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.

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

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

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Apr 12 '17, 9:51 a.m.

Question was seen: 4,057 times

Last updated: Oct 12 '17, 9:59 a.m.

Confirmation Cancel Confirm