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

Assistance: Unable to query multiple categories terms and values for a Test Suite through the REST API

I am trying to query terms and values within a test suite, for example I have a category named "02 Test Phase" with multiple values and another category named "18 Bundle Id" also with multiple values.    I'm trying to write a single query where "02 Test Phase" equals "SIT", and "18 Bundle Id" equals "0002".     There are 5 test suite records with the given combination.    When I use an "OR", I get all records with either category and value, when I use "AND" zero records are returned.     In the Test Suite View I can easily select filtering criteria across multiple categories.   I would greatly appreciate any help from the expertise in the community.

Returns hundreds of values ....  testsuite?fields=feed/entry/content/testsuite/(identifier|title|category[(@term="02 Test Phase" and @value="SIT") or (@term="18 Bundle Id" and @value="0002")])

Returns 0 Entries....    testsuite?fields=feed/entry/content/testsuite/(identifier|title|category[(@term="02 Test Phase" and @value="SIT") and (@term="18 Bundle Id" and @value="0002")])

0 votes



2 answers

Permanent link
Hi Thomas,

This is a defect.  Please open a RQM defect.

Note, both of your examples are the same.

0 votes

Comments

I corrected the example: the first select should have contained an "or" and the second the "and".    Any thoughts on a possible workaround?

Unfortunately, no.  I debugged the request and it appears to be related to the underlying database query.

Thomas/Paul: any detail on the underlying DB that could make this kind of requests to fail ?

Stephane, it's not a failure but rather an invalid result set.  The query predicate appears correct but the expected test suite(s) are not returned in the result set.  I tested using Derby/Tomcat.


Permanent link
Paul has tracked this problem in 

Hope this info helps you out Thomas,

Gerd 
IBM Rational
TechSupport

0 votes

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: Aug 13 '13, 11:41 a.m.

Question was seen: 5,512 times

Last updated: Nov 12 '13, 8:09 a.m.

Confirmation Cancel Confirm