It's all about the answers!

Ask a question

Command line using variable arguments


Claus Hjerrild Pedersen (8521617) | asked May 06 '11, 7:13 a.m.
Hi

We have started executing a test script from the command line where the data for the script is written in the arguments.The script is packed into a keyword and used in a manual test script.
The challenge is that we would like to have an easy way to replace the data in the argument when we excecute the test.

Does anybody have a suggestion for that?

Thanks in advance
Claus

3 answers



permanent link
Kurtis Martin (1.4k11) | answered May 09 '11, 10:44 p.m.
JAZZ DEVELOPER
Hi

We have started executing a test script from the command line where the data for the script is written in the arguments.The script is packed into a keyword and used in a manual test script.
The challenge is that we would like to have an easy way to replace the data in the argument when we excecute the test.

Does anybody have a suggestion for that?

Thanks in advance
Claus


There's no way to do this in RQM 2.x, but in RQM 3.0.1 there's a new feature named execution variables, which can help in this situation. Essentially execution variables are name/value pairs of strings. They are available in manual test scripts and scripts called via the command-line adapter (aka CLA). In the case of CLA they get passed to your script as environment variables, not script arguments.

Manual scripts can have "Set Variable" steps that can be used to specify the value you want passed to your command-line script at run time. You can do this optionally when you start the script execution or you can do this at some random step in your manual script. In either case the modified variable values that you specify will get passed into your keyword command-line script.

permanent link
Andri Lareida (36) | answered Jul 19 '11, 4:35 a.m.
Does anyone know when execution variables will be available for RFT scripts?
The fact that this is not supported is a bit disappointing, we could greatly benefit from this feature.

permanent link
Kurtis Martin (1.4k11) | answered Jul 26 '11, 11:14 p.m.
JAZZ DEVELOPER
On 7/19/2011 4:38 AM, andrilareida wrote:
Does anyone know when execution variables will be available for RFT
scripts?
The fact that this is not supported is a bit disappointing, we could
greatly benefit from this feature.


RQM execution variables will be supported in RFT 8.2.1. I'm not sure of
the release date of RFT 8.2.1 and perhaps you can ask for that date in
the RFT forum on devworks.

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.