Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Have anyone tried to integrate RQM with python?


Do we still use the Command line adapter for integrating with python?

Are there any examples or paper out there for how to effectively integrate RQM with python?
I found this squish adapter, is this the same thing as the command line adapter?
but look like we need to purchase it separately from other people?
http://doc.froglogic.com/squish/latest/ao-rqmintegration.html

Thanks in advance.

0 votes


Accepted answer

Permanent link
Hi Ivy,

RQM does not support Python and there are no plans to add support.  You can integrate third-party test execution applications with RQM via the Command Line Adapter (see https://jazz.net/library/article/809).

Note, the Squish adapter is a third-party component for RQM integration.
Ivy Ho selected this answer as the correct answer

0 votes

Comments

Thank again Paul. 


2 other answers

Permanent link
I recently needed to run RQM command line test scripts using a python test automation framework, and I needed to make the RQM test scripts Operating System agnostic. Here are the steps I took to complete this task:
(1)Installed Python in the following directly on the remote automation machine, C:\Python33
(2)Updated the start.bat file with the following -D argument, -Djava.io.tmpdir=C:\Python33. Note, the same would need to be done in the start.sh with the exception of the filesystem path being different, eg -Djava.io.tmpdir=/opt/Python33
For example, here is how the command in the file was originally configured:
java.exe -Dlog4j.configuration=file:.\log4j.properties -classpath "%filecontent%" com.ibm.rqm.adapter.commandline.QMCommandLineAdapter %*
And here is how the command was configured after my update:
java.exe -Djava.io.tmpdir=C:\Python33 -Dlog4j.configuration=file:.\log4j.properties -classpath "%filecontent%" com.ibm.rqm.adapter.commandline.QMCommandLineAdapter %*
(3)Put the python file I want RQM to run in the following directory, C:\Python33\Lib.
(4)Create an RQM Command Line test script (eg "Python Wrapper") with the following configurations:
--Command Line Script Details -->Use test resources that are local to a test machine = true
--Command Line Script Details -->Command = python
--Command Line Script Details -->Arguments = -m pythonWrapper
--Execution Variables -->Include built-in variables = true
Note, the pythonWrapper.py file is the python file which will be used by all RQM test cases to run tests via a  python test automation framework
(5)Created several test cases, with different execution variables, and associated each of the test cases to the "Python Wrapper" RQM test script.

0 votes


Permanent link
Hi Ivy,
The RQM command-line adapter can be used to integrate RQM with a python test automation framework.
For example, if you wanted to configure RQM to run python tests the following could be done:
(1)Create a RQM command line test script with the following values:
--Command Line Script Details -->Use test resources that are local to a test machine = true
--Command Line Script Details -->Command = C:\Python33\python.exe
--Command Line Script Details -->Arguments =C:\testscripts\pythonWrapper.py





0 votes


Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,926

Question asked: Nov 13 '13, 8:49 p.m.

Question was seen: 7,545 times

Last updated: Jan 06 '16, 11:38 a.m.

Confirmation Cancel Confirm