It's all about the answers!

Ask a question

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


Jayesh Gaikar (59215) | asked Sep 01 '20, 6:10 p.m.
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

One answer



permanent link
Jaime de Alba (211) | answered Sep 18 '20, 3:41 p.m.

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

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.