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

Exception while executing OSLC query on RQM : unsupported predicate: rqm_qm:isCurrent

Hi,

I want to find all latest test Results with Details of Test case, Test execution Records for a  given Test plan.
I'm trying to query Test results with OSLC APIs. Following are the filters in WHERE clause
  - oslc_qm:reportsOnTestPlan=<ResourceURL>
  - rqm_qm:isCurrent=true

I'm able to fetch list of Test Results without second filter (rqm_qm:isCurrent) but But it is always failing if i include second filter with   Error Occurred - Bad Request 400
Following is the actual Exception in RQM.logs
com.ibm.rqm.oslc.common.OslcQueryException: unsupported predicate: rqm_qm:isCurrent=true at com.ibm.rqm.oslc.AbstractOslcQuerySupport.queryItems(AbstractOslcQuerySupport.java:193) at com.ibm.rqm.oslc.execution.TestResultQuerySupport.queryItems(TestResultQuerySupport.java:120) at
...
Caused by: com.ibm.rqm.oslc.query.where.ParseException: unsupported predicate: rqm_qm:isCurrent=true at com.ibm.rqm.oslc.query.where.OslcWhereParser.term(OslcWhereParser.java:122) at com.ibm.rqm.oslc.query.where.OslcWhereParser.simple_term(OslcWhereParser.java:92) at com.ibm.rqm.oslc.query.where.OslcWhereParser.compound_term(OslcWhereParser.java:49) at com.ibm.rqm.oslc.query.where.OslcWhereParser.where(OslcWhereParser.java:45) at com.ibm.rqm.oslc.AbstractOslcQuerySupport.queryItems(AbstractOslcQuerySupport.java:190) ... 61 more

Is that mean rqm_qm:isCurrent not supported in where clause ?
If so may i know alternative way of fetching this results? Can i fetch latest Test Results of every Test case in given Test plans by using Reportable REST API ?

Any helps and examples would be great help...
Thanks in advance!
-Jay

0 votes



One answer

Permanent link

For Test Results there is no such "rqm_qm:isCurrent", the only one supported that is similiar is "rqm_qm:isCurrentForBuild"

1 vote

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,944
× 7,501
× 1,331
× 218
× 137

Question asked: Sep 01 '20, 6:10 p.m.

Question was seen: 2,274 times

Last updated: Sep 18 '20, 3:41 p.m.

Confirmation Cancel Confirm