It's all about the answers!

Ask a question

RQMUrlUtility - Using GET command to export a test case to a xml file


Suresh peela (3134) | asked Dec 04 '12, 11:47 a.m.

Started on Jazz 2 days ago.

I am using RQM 4.0 and an RQMUrlUtility to export a test case as a xml out put. I am using the following URL

java -jar RQMUrlUtility.jar -command GET -user <user> -password <pwd> -filepath C:\\DownLoad_XML.txt -url https:<server>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality%20Manager/testcase/urn:com.ibm.rqm:testcase:1065

where 1065 is the test case id in the QM.

It repeatedly failes with a 400 - Bad Request. Do any of you see a problem with the syntax. 

My Primary goal is to find a way to link a test case to a business requirement in RM. Manually it is achieved by using the 'Requirement Links' fields for the test case. 

Or the reverse is also fine, a way to populate the link fields 'Validated By' in the Requirements in RM while uploading requirements via a csv file. 

Please advise. 

3 answers



permanent link
Brian Fleming (1.6k11828) | answered Dec 04 '12, 4:54 p.m.
The "Quality%20Manager" portion of the -url argument is supposed to be the project area alias.  Its likely test case 1065 is not in a project area named "Quality Manager".  The alias is generally the same as the name of the project area, unless the project area has been renamed.  This URL provides a feed which includes the aliases:
https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects

permanent link
Paul Slauenwhite (8.3k12) | answered Dec 05 '12, 8:08 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
edited Dec 05 '12, 8:10 a.m.
 A couple of comments:

-I agree the problem is likely with the project area alias.  If not, please use Poster and/or HttpRequester and post the HTTP response content.
-See the Notes at the top of https://jazz.net/wiki/bin/view/Main/RQMURLUtility#Sample_command_line_arguments.
-Consider using Poster and/or HttpRequester instead of the RQM URL Utility.
-Consider using the RQM OSLC API.


permanent link
Suresh peela (3134) | answered Dec 06 '12, 3:05 p.m.
 Thanks a lot for the replies. I was able to fix the issue as below.

The URL I tried using the project alias was as below

<server>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/CP_LifeCycle_Project _QM/testcase/urn:com.ibm.rqm:testcase:1065

The point i missed was there was a space between _Project and _QM. Once I took care of it by renaming the alias as below (using a '+' ), the URL utlity worked and I could pull down a test case as xml.

CP_LifeCycle_Project+_QM

Your answer


Register or to post your answer.