It's all about the answers!

Ask a question

RQM API Programmatical Usage


Srikanth Reddy Lokireddy (1143) | asked Sep 22 '09, 8:13 a.m.
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.

8 answers



permanent link
John Nason (2.4k1012) | answered Sep 22 '09, 4:53 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

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.

permanent link
Stefan Küppers (3611) | answered Nov 12 '09, 5:02 a.m.
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.

permanent link
Manesh Kaniti (26104) | answered Nov 12 '09, 7:01 a.m.
Hi Stefan,

Can you pls let me know about the Test Plan location ???

Thanks for Test case XML.

Thanks,
Manesh

permanent link
Stefan Küppers (3611) | answered Nov 12 '09, 7:29 a.m.
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.

permanent link
Manesh Kaniti (26104) | answered Nov 13 '09, 2:29 a.m.
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

permanent link
Stefan Küppers (3611) | answered Nov 13 '09, 5:57 a.m.
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.

permanent link
Rajesh Kumar (622) | answered Apr 20 '10, 12:41 p.m.
Hi,

We are currently looking at options to trigger a API function based on user action on RQM.

For example if user changes the status of script, is it possible to trigger RQM

permanent link
Mayank Srivastava (11) | answered Sep 11 '16, 1:14 p.m.
Is there a way, I can check for test cases where the engineers have missed writing the test procedures using the api ?

Regards,
Mayank Srivastava
email: mayanksri1989@gmail.com

Comments
Donald Nong commented Sep 11 '16, 8:24 p.m.

You've revived a 6-year-old thread. I suggest you open a new post for your specific question.

Your answer


Register or to post 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.