REST API to fetch all QM test artifacts in GC project
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="http://jazz.net/ns/auto/rqm#" xmlns:acp="http://jazz.net/ns/acp#" xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/" xmlns:acc="http://open-services.net/ns/core/acc#" xmlns:process="http://jazz.net/ns/process#" xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:jrs="http://jazz.net/ns/jrs#" xmlns:oslc_auto="http://open-services.net/ns/auto#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bp="http://open-services.net/ns/basicProfile#"
xmlns:project__6Cf2BOCaEeuaurObCHGwiA_testCase="https://rb-alm-11-q2.de.bosch.com/qm/oslc_qm/contexts/_6Cf2BOCaEeuaurObCHGwiA/shape/resource/com.ibm.rqm.planning.VersionedTestCase#" xmlns:cmx="http://open-services.net/ns/cm-x#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rqm_lm="http://jazz.net/ns/qm/rqm/labmanagement#" xmlns:oslc="http://open-services.net/ns/core#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rqm_process="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:oslc_config="http://open-services.net/ns/config#"
xmlns:oslc_cm="http://open-services.net/ns/cm#" xmlns:rqm_qm="http://jazz.net/ns/qm/rqm#" xmlns:oslc_qm="http://open-services.net/ns/qm#" xmlns:oslc_rm="http://open-services.net/ns/rm#" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<rdf:Description rdf:about="https://rb-alm-11-q2.de.bosch.com/qm/oslc_qm/contexts/_6Cf2BOCaEeuaurObCHGwiA/resources/com.ibm.rqm.planning.VersionedTestCase?oslc.paging=true&rqm_qm.queryToken=_znruEttCEeyF2qHYztl8jQ&oslc.pageSize=512&rqm_qm.pageNum=0">
<dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">QM V2 Test Case Query Results</dcterms:title>
<oslc:nextPage rdf:resource="https://rb-alm-11-q2.de.bosch.com/qm/oslc_qm/contexts/_6Cf2BOCaEeuaurObCHGwiA/resources/com.ibm.rqm.planning.VersionedTestCase?oslc.paging=true&rqm_qm.queryToken=_znruEttCEeyF2qHYztl8jQ&oslc.pageSize=512&rqm_qm.pageNum=1"
/>
<oslc:totalCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">779</oslc:totalCount>
<bp:containerSortPredicates rdf:datatype="http://www.w3.org/2001/XMLSchema#string">rqm_qm:orderIndex</bp:containerSortPredicates>
<dcterms:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Results of a QM V2 Test Case query.</dcterms:description>
<rdf:type rdf:resource="http://open-services.net/ns/core#ResponseInfo" />
</rdf:Description>
<rdf:Description rdf:about="https://rb-alm-11-q2.de.bosch.com/qm/oslc_qm/contexts/_6Cf2BOCaEeuaurObCHGwiA/resources/com.ibm.rqm.planning.VersionedTestCase">
<rdf:type rdf:resource="http://open-services.net/ns/qm#TestCaseQuery" />
</rdf:Description>
</rdf:RDF>
Please let me know how to fetch information for 1200 test case with query (2)
One answer
oslc_config.context
parameter. This parameter is defined by the OSLC Configuration Management specification at https://docs.oasis-open-projects.org/oslc-op/config/v1.0/psd01/oslc-config-mgt.html. As described in section 4 of https://docs.oasis-open-projects.org/oslc-op/config/v1.0/psd01/config-resources.html#configcontext:
Syntax of the query string for configuration context:
?oslc_config.context=uri_ref_escThe 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.