A way to export test cases from RQM to Excel with complete content
Hi,
We need a way to export test cases from RQM to Excel with all the content including test scripts. I have tried RQM URL Utility with the below command, java -jar RQMUrlUtility.jar -command GET -user USERNAME -password PASSWORD -filepath "c:\Script2.xml" -url "https://HOSTADDRESS/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PROJECT%20(Testing)/testcase/urn:com.ibm.rqm:testcase:393" It returns the success msg as below, It says the XML retrieved successfully, but it doesn't generate anything in the file i-e C:\Script2.xml ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ <<<<<----- [ RQMUrlUtility ] ---->>>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Default cookie policy RFC_2109 is used. RQMUrlUtility: Connected to https://HOSTADDRESS using project "PROJECT+(Testing)" 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://HOSTADDRESS/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PROJECT+(Testing)/testcase/urn:com.ibm.rqm:testcase:1838 " is written to file located at -: " c:\Script2.xml " Disconnecting from the IBM Rational Quality Manager server. Can someone assist if there is something missing or this solution will work or not? Thanks in advance. |
Accepted answer
Looking at the examples in https://jazz.net/wiki/bin/view/Main/RQMURLUtility it looks to me like you'll need to escape the backslash in your file URL. I bet you can get this working by changing c:\Script2.xml to c:\\Script2.xml.
Ricky Jay selected this answer as the correct answer
Comments
Ricky Jay
commented Jun 30 '16, 7:10 a.m.
Hi Michael,
I would like to have your input in one more query.
Once after the xml is generated, It can be opened in Excel file.
1-) Only one test case or script can be exported at a time? (as in the command, we provide URL of any one test case or script) - does it means we cannot export bunch of test cases/scripts at a time from RQM to excel?
2-)When i open the xml in the excel, IT has many irrelevant columns filled itself like URL and other details without having the heading tab. Do i need to put the heading myself?
Many thanks
Michael Triantafelow
commented Jul 01 '16, 1:30 p.m.
Well, the first thing I would say is that the XML isn't really optimized for viewing in Excel. I think perhaps the URLUtility is not the best tool for what you are trying to do. Have you looked at the CSV Export feature?
|
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.