How to get XML fource from RQMUrlUtility for Custom Section unique ID using RQM Importer
Hi, I'm working on creating cfg files for RQM Imorter and need to get the Unique ID for custom sections I've created. Our company will not allow the use of POSTER or cURL. I've found RQMUrlUtility and believe it can give me what I need but I have hit a snag.
The command I'm using is:
java -jar RQMUrlUtility.jar -user <MyID> -password <MyPSWD> -command GET -filepath <path>/output.txt -url <URL of specific test case>
I'm looking for something like the following in the XML response:
< ns2:section content="" name="MyCustomTPsectionForDemo" id="com.ibm.rqm.planning.editor.section.dynamicSection_1379687368053" description="Created this section for a demo"/ > The output that I receive is the same as if I were to "view page source". It doesn't provide the XML source.
Can this be done with RQMUrlUtility? if so how?
Thanks,
Karen
The command I'm using is:
java -jar RQMUrlUtility.jar -user <MyID> -password <MyPSWD> -command GET -filepath <path>/output.txt -url <URL of specific test case>
I'm looking for something like the following in the XML response:
< ns2:section content="" name="MyCustomTPsectionForDemo" id="com.ibm.rqm.planning.editor.section.dynamicSection_1379687368053" description="Created this section for a demo"/ > The output that I receive is the same as if I were to "view page source". It doesn't provide the XML source.
Can this be done with RQMUrlUtility? if so how?
Thanks,
Karen
Accepted answer
I believe you have read this post.
https://jazz.net/forum/questions/176445/rqmexcelimporter-importing-custom-section-in-test-plan
Note that the custom section appears in only the test artifacts that you have added custom sections to. So make sure the test case that you queried is the same one you have already added a custom section.
Also, if you want to add custom sections when creating the test case, you don't need to find the section Id beforehand - you can use any values.
https://jazz.net/forum/questions/176445/rqmexcelimporter-importing-custom-section-in-test-plan
Note that the custom section appears in only the test artifacts that you have added custom sections to. So make sure the test case that you queried is the same one you have already added a custom section.
Also, if you want to add custom sections when creating the test case, you don't need to find the section Id beforehand - you can use any values.
Comments
2 other answers
Karen,
Yes RQMURLUtility tool can be used, you will find dynamic section ID as dynamicSection__<uuid> in XML response. Please refer RQM How can I get the dynamic Section ID of one Test Case
Regards,
Mehul
Thank you, that worked!
For others trying to figure this out....here's the command I used:
java -jar RQMUrlUtility.jar -user <MyID> -password <MyPassword> -command GET -filepath <PATH> -url https://<HOSTNAME>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AIMM+S2+Lifecycle+Project+for+Requirements%2c+CCM%2c+SW+Dev+and+QA+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:57
Output received in cmd.exe window:
Default cookie policy RFC_2109 is used.
RQMUrlUtility: Connected to https://<HOSTNAME>:9443 using project "AIMM+S2+Lifecy
cle+Project+for+Requirements%2c+CCM%2c+SW+Dev+and+QA+%28Quality+Management%29"
Attempting to create SSL_TLS context
java.security.NoSuchAlgorithmException: SSL_TLS SSLContext not available
Unable to create SSL_TLS context, trying SSLv3
RQMUrlUtility: Calling [ HTTP GET ] method to retrieve XML from a specified URL
RQMUrlUtility: Server Response code: 200
RQMUrlUtility: [ SUCCESS ] XML string retrieved from URL : "https://<HOSTNAME>:94
43/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AIMM
+S2+Lifecycle+Project+for+Requirements%2c+CCM%2c+SW+Dev+and+QA+%28Quality+Manage
ment%29/testcase/urn:com.ibm.rqm:testcase:57 " is written to file located at -:
" <PATH> "
Disconnecting from the IBM Rational Quality Manager server.
Line I was looking for:
><com.ibm.rqm.planning.editor.section.dynamicSection_1446479924943 xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" extensionDisplayName="Outline">
For others trying to figure this out....here's the command I used:
java -jar RQMUrlUtility.jar -user <MyID> -password <MyPassword> -command GET -filepath <PATH> -url https://<HOSTNAME>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AIMM+S2+Lifecycle+Project+for+Requirements%2c+CCM%2c+SW+Dev+and+QA+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:57
Output received in cmd.exe window:
Default cookie policy RFC_2109 is used.
RQMUrlUtility: Connected to https://<HOSTNAME>:9443 using project "AIMM+S2+Lifecy
cle+Project+for+Requirements%2c+CCM%2c+SW+Dev+and+QA+%28Quality+Management%29"
Attempting to create SSL_TLS context
java.security.NoSuchAlgorithmException: SSL_TLS SSLContext not available
Unable to create SSL_TLS context, trying SSLv3
RQMUrlUtility: Calling [ HTTP GET ] method to retrieve XML from a specified URL
RQMUrlUtility: Server Response code: 200
RQMUrlUtility: [ SUCCESS ] XML string retrieved from URL : "https://<HOSTNAME>:94
43/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AIMM
+S2+Lifecycle+Project+for+Requirements%2c+CCM%2c+SW+Dev+and+QA+%28Quality+Manage
ment%29/testcase/urn:com.ibm.rqm:testcase:57 " is written to file located at -:
" <PATH> "
Disconnecting from the IBM Rational Quality Manager server.
Line I was looking for:
><com.ibm.rqm.planning.editor.section.dynamicSection_1446479924943 xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" extensionDisplayName="Outline">