It's all about the answers!

Ask a question

how can we query tcer according to test plan with configuration enabled in RQM by REST API?


jane zhou (106764) | asked Jun 14 '18, 9:26 a.m.
edited Jun 14 '18, 9:31 a.m.

Hi Someone who may concern


        We are working on CLM 6.0.4.
         We are wondering whether it is supported that query all TCER according to a specified test plan with configuration enabled?
 
        We have several GC streams including RQM local stream, we want to use REST API to fetch all tcer under specified test plan for a specified stream:
       

      But it just can not return proper result back.
       However, when we tried to access the same test plan directly under the same GC stream, it can return the content of that test plan properly, so we are sure we used the right configuration.
https://aaa.ccm.com:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectA/testplan/urn:com.ibm.rqm:testplan:1067?oslc_config.context=https%3A%2F%2Faaa.ccm.com%3A9443%2Fgc%2Fconfiguration%2F191

        So, we are wondering whether something wrong in our REST API command to query TCER? How can we query all TCER according to a specified test plan with configuration enabled?

        Thanks!

Best Regards,
Jane Zhou

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered Jun 25 '18, 6:52 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Hi Jane, 


Everything you're trying to do is supported in RQM 6.0.4.

Try:

GET https://<localhost>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectA/executionworkitem?fields=feed/entry/content/executionworkitem/(testplan[@href='https://<localhost>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectA/testplan/urn:com.ibm.rqm:testplan:1067'])&oslc_config.context=https://<localhost>:9443/gc/configuration/191


Note: This example is URL-decoded for readability.

Your answer


Register or to post your answer.