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

Command line using variable arguments

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

0 votes



3 answers

Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link
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.

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

Question asked: May 06 '11, 7:13 a.m.

Question was seen: 5,161 times

Last updated: May 06 '11, 7:13 a.m.

Confirmation Cancel Confirm