RQMURLUtility with custom suiteelement fields
Running the RQMURLUtility.jar I am sending it the following:
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?fields=feed/entry/content/testsuite/(title|description)"
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?
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?fields=feed/entry/content/testsuite/(id|owner)"
<?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="0">
<ns2:testcase href="https://myAddress:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/myAlias/testcase/12_Inquiries"/>
<ns6:owner ns1:resource="https://myAddress:9443/jts/resource/itemName/com.ibm.team.repository.Contributor/lsshock">lsshock</ns6:owner>
<ns2:remotescript href="https://myAddress:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/myAlias/remotescript/urn:com.ibm.rqm:remotescript:4918"/>
<ns2:suiteelements><ns2:suiteelement elementindex="1">
<ns2:testcase href="https://myAddress:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/myAlias/testcase/12_Inquiries"/>
<ns6:owner ns1:resource="https://myAddress:9443/jts/resource/itemName/com.ibm.team.repository.Contributor/lsshock">lsshock</ns6:owner>
<ns2:remotescript href="https://myAddress:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/myAlias/remotescript/urn:com.ibm.rqm:remotescript:4918"/>
</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
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