RQMUrlUtility - Using GET command to export a test case to a xml file
Started on Jazz 2 days ago.
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
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
https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects
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.
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