RQM API Programmatical Usage
8 answers
Hi Srikanth,
For a code sample, check out the open source: https://jazz.net/wiki/bin/view/Main/RQMCopyUtility
which can be obtained from the "All Downloads" section of the RQM page on jazz.net.
Regards,
John
For a code sample, check out the open source: https://jazz.net/wiki/bin/view/Main/RQMCopyUtility
which can be obtained from the "All Downloads" section of the RQM page on jazz.net.
Regards,
John
Hi All,
Can anyone let me know how to programmatically login to RQM and get a particular resource such as a test case in XML format through the REST API without using Poster or RQMURLUtility tools?
Regards,
Srikanth.
Hi All,
Can anyone let me know how to programmatically login to RQM and get a particular resource such as a test case in XML format through the REST API without using Poster or RQMURLUtility tools?
Regards,
Srikanth.
Hi,
here is a commandline for getting the first testcase:
java -jar RQMUrlUtility.jar -command GET -user MyUser -password MyPasswd -filepath C:\\DownLoadTc1.xml -url https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/testcase/urn:com.ibm.rqm:testcase:1
Replace MyUser and MyPasswd with the information of your system.
Replace ':1' with ':2' to get the second testcase, and so on.
Regards, Stefan.
Hi Stefan,
Can you pls let me know about the Test Plan location ???
Thanks for Test case XML.
Thanks,
Manesh
Hello Manesh,
just replace testcase with testplan.
The URL is then:
https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/testplan/urn:com.ibm.rqm:testplan:1
Stefan.
Hi Stefan,
Thanks for your mail.
I have did as per your suggestion but getting not able to get the XML file.
Step -1 : Downloaded the RQMCopyUtility.ZIP file and extract.
Step-2 :
in My machine I have Jar file .pls find the location :
-------------------------
C:\Program Files\Java>dir
Volume in drive C has no label.
Volume Serial Number is 6806-ABBD
Directory of C:\Program Files\Java
04/09/2009 03:19 PM <DIR> .
04/09/2009 03:19 PM <DIR> ..
05/30/2008 01:38 PM <DIR> jre1.5.0_14
04/09/2009 02:59 PM <DIR> jre1.5.0_16
04/09/2009 03:19 PM <DIR> jre1.6.0_07
Step -3 : typed the command and getting error
C:\Program Files\Java>java -jar RQMCopyUtil.jar -command GET -user manesh -passw
ord madhu73 -filepath C:\\DownLoadTc1.xml -url https://localhost:9443/jazz/servi
ce/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager
/testplan/urn:com.ibm.rqm:testplan:1
Unable to access jarfile RQMCopyUtil.jar
Is it correct process and Can you pls help me ..How to get the XML file
Thanks,
Manesh
Thanks for your mail.
I have did as per your suggestion but getting not able to get the XML file.
Step -1 : Downloaded the RQMCopyUtility.ZIP file and extract.
Step-2 :
in My machine I have Jar file .pls find the location :
-------------------------
C:\Program Files\Java>dir
Volume in drive C has no label.
Volume Serial Number is 6806-ABBD
Directory of C:\Program Files\Java
04/09/2009 03:19 PM <DIR> .
04/09/2009 03:19 PM <DIR> ..
05/30/2008 01:38 PM <DIR> jre1.5.0_14
04/09/2009 02:59 PM <DIR> jre1.5.0_16
04/09/2009 03:19 PM <DIR> jre1.6.0_07
Step -3 : typed the command and getting error
C:\Program Files\Java>java -jar RQMCopyUtil.jar -command GET -user manesh -passw
ord madhu73 -filepath C:\\DownLoadTc1.xml -url https://localhost:9443/jazz/servi
ce/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager
/testplan/urn:com.ibm.rqm:testplan:1
Unable to access jarfile RQMCopyUtil.jar
Is it correct process and Can you pls help me ..How to get the XML file
Thanks,
Manesh
Hi Stefan,
Thanks for your mail.
I have did as per your suggestion but getting not able to get the XML file.
Step -1 : Downloaded the RQMCopyUtility.ZIP file and extract.
Step-2 :
in My machine I have Jar file .pls find the location :
-------------------------
C:\Program Files\Java>dir
Volume in drive C has no label.
Volume Serial Number is 6806-ABBD
Directory of C:\Program Files\Java
04/09/2009 03:19 PM <DIR> .
04/09/2009 03:19 PM <DIR> ..
05/30/2008 01:38 PM <DIR> jre1.5.0_14
04/09/2009 02:59 PM <DIR> jre1.5.0_16
04/09/2009 03:19 PM <DIR> jre1.6.0_07
Step -3 : typed the command and getting error
C:\Program Files\Java>java -jar RQMCopyUtil.jar -command GET -user manesh -passw
ord madhu73 -filepath C:\\DownLoadTc1.xml -url https://localhost:9443/jazz/servi
ce/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager
/testplan/urn:com.ibm.rqm:testplan:1
Unable to access jarfile RQMCopyUtil.jar
Is it correct process and Can you pls help me ..How to get the XML file
Thanks,
Manesh
Hello Manesh,
"Unable to access jarfile RQMCopyUtil.jar" means that java does not find the jar file.
After downloading the zip-file extract the content to a directory.
You will now find the extracted "RQMUrlUtility.jar" in this directory. Change to this directory.
"dir" should show the following.
24.07.2009 17:09 3.160 about.html
11.11.2009 18:04 <DIR> about_files
11.11.2009 18:04 <DIR> com
11.11.2009 18:04 <DIR> lib
11.11.2009 18:03 <DIR> LICENSES
11.11.2009 18:04 <DIR> META-INF
11.11.2009 18:04 <DIR> org
24.07.2009 17:09 601 plugin.properties
24.07.2009 16:42 5.059 readme.txt
24.07.2009 17:09 707.646 RQMUrlUtility.jar
11.11.2009 18:04 <DIR> src
Now you can run the command.
First run "java -version". This will show you which java version is used. Or call java an give the complete path. This is for your installation:
"C:\Program Files\Java\jre1.6.0_07\bin\java.exe" -jar QMCopyUtil.jar -command GET -user manesh -passw
ord madhu73 -filepath C:\\DownLoadTc1.xml -url https://localhost:9443/jazz/servi
ce/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager
/testplan/urn:com.ibm.rqm:testplan:1
Hope that helps, Stefan.