Запуск RQMURLUtility.jar Я отправляю ему следующее:
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)"
Это выше дает мне этот вывод в файле GET.txt :
<?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>
Что верно, так как у меня были поля title и description. Тем не менее, когда я изменяю их на что-то другое, это, кажется, не работает по какой-то причине?
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"/>
И это все, что я получаю, когда у него должны быть ID и Владелец как это было для title и description .
Это полное значение XML, которое оно дает мне (сокращено ради космоса):
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"
И его вывод:
<?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>
Область suiteelement - это область, где я хочу собрать необходимые поля ( id, owner, созданный , et c ....).
Помощь была бы отличной! Спасибо.