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.
Accepted answer
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.
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.
2 other answers
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
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
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.
(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.