It's all about the answers!

Ask a question

RQMURLUtility with custom suiteelement fields


David G (11213) | asked Mar 04 '20, 10:12 a.m.
edited Mar 04 '20, 10:15 a.m.
Running the RQMURLUtility.jar I am sending it the following:
That above gives me this output inside the GET.txt file:
<?xml version="1.0" encoding="UTF-8"?>
     <ns2:testsuite xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/"
     .... 
     xmlns:ns21="http://www.w3.org/1999/XSL/Transform">
    <ns4:title>Full Phase 1</ns4:title>
    <ns4:description>Web UI Automated Smoke Testing</ns4:description>
</ns2:testsuite>
Which is correct since i had fields title and description. However, when i change those to something different it does not seem to work for some reason?
<?xml version="1.0" encoding="UTF-8"?>
     <ns2:testsuite xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/"....xmlns:ns21="http://www.w3.org/1999/XSL/Transform"/>
And that is all i receive when it should have ID and Owner like it did for title and description.

This is the full XML it gives me (shortened for space sake):
java -jar RQMUrlUtility.jar -command GET -user myUSERNAME -password "myPASSWORD" -filepath _GET.txt -url "https://myAddress:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/myAlias/testsuite/urn:com.ibm.rqm:testsuite:67"
And its output:
<?xml version="1.0" encoding="UTF-8"?>
<ns2:testsuite xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/".... xmlns:ns20="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns21="http://www.w3.org/1999/XSL/Transform">
    <ns2:projectArea href="https://myAddress.cjis:9443/qm/resource/itemOid/com.ibm.team.process.ProjectArea/_rutRAgjwEee_eaoOInJ4Vg" alias="myAlias"/>
    <ns4:identifier>https://myAddress:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/myAlias/testsuite/urn:com.ibm.rqm:testsuite:67</ns4:identifier>
    <ns2:stylesheet href="https://myAddress:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/myAlias/testsuite/urn:com.ibm.rqm:testsuite:67?stylesheet=true"/>
    <ns2:webId>67</ns2:webId>
    <ns4:title>Full Phase 1</ns4:title>
    <ns4:description>Web UI Automated Smoke Testing</ns4:description>
    <ns2:creationDate>2019-01-07T21:02:52.749Z</ns2:creationDate>
    ...
        <ns2:suiteelements>
             <ns2:suiteelement elementindex="1">
             </ns2:suiteelement>
             <ns2:suiteelement elementindex="2">
              .....
             </ns2:suiteelement>
        </ns2:suiteelements>
</ns2:testsuite>
The suiteelement area is the area where i want to gather my needed fields (id, owner, created by, etc....).

Help would be great! Thanks.

One answer



permanent link
Mehul Patel (9695) | answered Mar 06 '20, 6:53 a.m.
FORUM MODERATOR

David,


Try with 'fields=feed/entry/content/testsuite/(webId|owner)' it should get you the Id you are looking for.
 Please refer supported resources and properties at RQM API wiki.

Regards,
Mehul

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.