It's all about the answers!

Ask a question

Can not filter RQM test steps with OSLC.WHERE by title


Dmitry A. Lesin (21012846) | asked Oct 30 '17, 10:33 a.m.
edited Oct 31 '17, 3:15 a.m.
Hello!
I'm using Postman to get test execution steps from Rational Quality Manager v6.0.4. I do GET request with next URI:

https://jazz.server.com:9443/qm/oslc_qm/contexts/_S27gMLfpEeeEgs7LYGmNuA/resources/com.ibm.rqm.planning.ExecutionElement2?oslc.properties=dcterms:title

It works perfect! I have a response:

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
...  xmlns:project__S27gMLfpEeeEgs7LYGmNuA_testScriptStep="https://jazz.server.com:9443/qm/oslc_qm/contexts/_S27gMLfpEeeEgs7LYGmNuA/shape/resource/com.ibm.rqm.planning.ExecutionElement2#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
    <oslc:ResponseInfo rdf:about="https://jazz.server.com:9443/qm/oslc_qm/contexts/_S27gMLfpEeeEgs7LYGmNuA/resources/com.ibm.rqm.planning.ExecutionElement2?rqm_qm.pageNum=0">
        <oslc:totalCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">3</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 Script Step query.</dcterms:description>
        <dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">QM V2 Test Script Step Query Results</dcterms:title>
    </oslc:ResponseInfo>
    <rqm_qm:TestScriptStepQuery rdf:about="https://jazz.server.com:9443/qm/oslc_qm/contexts/_S27gMLfpEeeEgs7LYGmNuA/resources/com.ibm.rqm.planning.ExecutionElement2">
        <oslc_qm:testScriptStep>
            <rqm_qm:TestScriptStep rdf:about="https://jazz.server.com:9443/qm/oslc_qm/contexts/_S27gMLfpEeeEgs7LYGmNuA/resources/com.ibm.rqm.planning.ExecutionElement2/_bRXX0L15EeeRHITdl2VWbQ">
                <rqm_qm:orderIndex rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">2</rqm_qm:orderIndex>
                <dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">111</dcterms:title>
            </rqm_qm:TestScriptStep>
        </oslc_qm:testScriptStep>
        <oslc_qm:testScriptStep>
            <rqm_qm:TestScriptStep rdf:about="https://jazz.server.com:9443/qm/oslc_qm/contexts/_S27gMLfpEeeEgs7LYGmNuA/resources/com.ibm.rqm.planning.ExecutionElement2/_bRbpQL15EeeRHITdl2VWbQ">
                <rqm_qm:orderIndex rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</rqm_qm:orderIndex>
                <dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">222</dcterms:title>
            </rqm_qm:TestScriptStep>
        </oslc_qm:testScriptStep>
        <oslc_qm:testScriptStep>
            <rqm_qm:TestScriptStep rdf:about="https://jazz.server.com:9443/qm/oslc_qm/contexts/_S27gMLfpEeeEgs7LYGmNuA/resources/com.ibm.rqm.planning.ExecutionElement2/_bRcQUb15EeeRHITdl2VWbQ">
                <rqm_qm:orderIndex rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</rqm_qm:orderIndex>
                <dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">333</dcterms:title>
            </rqm_qm:TestScriptStep>
        </oslc_qm:testScriptStep>
    </rqm_qm:TestScriptStepQuery>
</rdf:RDF>

Next, I want filter the response by title. But if I use next URI:

https://jazz.server.com:9443/qm/oslc_qm/contexts/_S27gMLfpEeeEgs7LYGmNuA/resources/com.ibm.rqm.planning.ExecutionElement2?oslc.properties=dcterms:title&oslc.where=dcterms:title=%22111%22

And I have an error in the response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="https://jazz.server.com:9443/qm/web/com.ibm.rqm.oslc.web/ui/internal/style/ErrorStyle.xsl"?>
<rdf:RDF xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rqm_qm="http://jazz.net/ns/qm/rqm#" xmlns:ns9="http://jazz.net/xmlns/prod/jazz/process/1.0/" xmlns:oslc="http://open-services.net/ns/core#" xmlns:oslc_qm="http://open-services.net/ns/qm#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns6="http://open-services.net/xmlns/qm/1.0/" xmlns:ns10="http://open-services.net/xmlns/discovery/1.0/" xmlns:ns11="http://jazz.net/xmlns/prod/jazz/presentation/1.0/" xmlns:dcterms="http://purl.org/dc/terms/">
    <oslc:Error ns12:type="oslc:Error" xmlns:ns12="http://www.w3.org/2001/XMLSchema-instance">
        <oslc:statusCode>400</oslc:statusCode>
        <oslc:message>AQXCM5002E The query was not run for this query URL: https://jazz.server.com:9443/qm/oslc_qm/contexts/_S27gMLfpEeeEgs7LYGmNuA/resources/com.ibm.rqm.planning.ExecutionElement2?oslc.properties=dcterms:title&amp;oslc.where=dcterms:title=%22111%22. </oslc:message>
        <oslc:extendedError>
            <oslc:ExtendedError>
                <oslc:moreInfo rdf:resource="https://jazz.server.com:9443/clmhelp/topic/com.ibm.messages.CLMic/AQXCM5002E.html"/>
                <oslc:rel>alternate</oslc:rel>
            </oslc:ExtendedError>
        </oslc:extendedError>
        <rqm_qm:clientLocale>en-us</rqm_qm:clientLocale>
    </oslc:Error>
</rdf:RDF>

Sorry, what is wrong here?
Thank you for any help!

Accepted answer


permanent link
Paul Slauenwhite (8.3k12) | answered Nov 29 '17, 11:19 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

The title property is not queryable (see https://jazz.net/wiki/bin/view/Main/RqmOslcQmV2Api#Test_Script_Step or the query shape for com.ibm.rqm.planning.ExecutionElement2 resources).

Dmitry A. Lesin selected this answer as the correct answer

Your answer


Register or to post your answer.