It's all about the answers!

Ask a question

REST API to fetch all QM test artifacts in GC project

Swathi sheshadri (134) | asked May 24 '22, 5:23 a.m.
Hello Team,

I am using below query to fetch all testcases from a project

1. Query for PA : SIP (QM)

2. Query for PA : ASIC (QM)

The response for (1) fetches all the test cases for the mentioned configurations but for (2) i do not get any test case information instead i get below response with 302 HTTPStatus. The project has over 1200 test cases.

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rqm_auto="" xmlns:acp="" xmlns:calm="" xmlns:acc="" xmlns:process="" xmlns:dcterms=""
  xmlns:skos="" xmlns:jrs="" xmlns:oslc_auto="" xmlns:xsd="" xmlns:rdf="" xmlns:bp=""
  xmlns:project__6Cf2BOCaEeuaurObCHGwiA_testCase="" xmlns:cmx="" xmlns:rdfs=""
  xmlns:rqm_lm="" xmlns:oslc="" xmlns:owl="" xmlns:rqm_process="" xmlns:oslc_config=""
  xmlns:oslc_cm="" xmlns:rqm_qm="" xmlns:oslc_qm="" xmlns:oslc_rm="" xmlns:foaf="">
  <rdf:Description rdf:about=";rqm_qm.queryToken=_znruEttCEeyF2qHYztl8jQ&amp;oslc.pageSize=512&amp;rqm_qm.pageNum=0">
    <dcterms:title rdf:datatype="">QM V2 Test Case Query Results</dcterms:title>
    <oslc:nextPage rdf:resource=";rqm_qm.queryToken=_znruEttCEeyF2qHYztl8jQ&amp;oslc.pageSize=512&amp;rqm_qm.pageNum=1"
    <oslc:totalCount rdf:datatype="">779</oslc:totalCount>
    <bp:containerSortPredicates rdf:datatype="">rqm_qm:orderIndex</bp:containerSortPredicates>
    <dcterms:description rdf:datatype="">Results of a QM V2 Test Case query.</dcterms:description>
    <rdf:type rdf:resource="" />
  <rdf:Description rdf:about="">
    <rdf:type rdf:resource="" />

Please let me know how to fetch information for 1200 test case with query (2)

<style> @font-face {font-family:&amp;quot;Cambria Math&amp;quot;; panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal {margin-top:0in; margin-right:0in; margin-bottom:8.0pt; margin-left:0in; line-height:107%; font-size:11.0pt; font-family:&amp;quot;Calibri&amp;quot;,sans-serif;}.MsoChpDefault {font-family:&amp;quot;Calibri&amp;quot;,sans-serif;}.MsoPapDefault {margin-bottom:8.0pt; line-height:107%;}div.WordSection1 {page:WordSection1;} </style>

One answer

permanent link
David Honey (1.8k17) | answered May 24 '22, 5:40 a.m.
I don't know the answer to your specific question. However, an observation about the oslc_config.context parameter. This parameter is defined by the OSLC Configuration Management specification at As described in section 4 of

Syntax of the query string for configuration context:


The uri_ref_esc is an angle bracket-delimited URI reference in which > and \ are \-escaped, as defined in [OSLCCore3]

This applies to operations including a GET of a concept resource, and a GET on an OSLC query base.

Swathi sheshadri commented May 24 '22, 12:30 p.m.

After i added a parameter

&oslc.pageSize=Count was able to fetch all the details of test case in a project.

I guess there is a limit set in default query which only displays count instead of additional information.

Your answer

Register or to post your answer.