Ideas on how to pass parms to QTP from QUICK
Guy Werry
guy.werry at hbms.ca
Wed Sep 21 07:56:53 CDT 2005
Fernando,
In Unix the best method, by far, is what was already mentioned, which is
using SETSYSTEMVAL in the Quick (setting a value in an environment variable)
and then using that value in the Qtp with the GETSYSTEMVAL.
Note also that CHOOSE (in the Qtp) can reference a system variable as well.
We migrated from MPE to Unix more than 10 years ago and had a BUNCH of
different setups for passing parameters, due to having migrated from several
languages down to Powerhouse: by FAR the best/easiest/most efficient
solution for Unix is the environment variable! (Or winning the lottery and
retiring rich).
Guy L. Werry
Senior Systems Analyst
Hudson Bay Mining & Smelting Co., Limited.
-----Original Message-----
From: fernando.olmos at hpa.com.au [mailto:fernando.olmos at hpa.com.au]
Sent: Tuesday, September 20, 2005 11:27 PM
To: valentin.likoum at ncc.volga.ru
Cc: powerh-l at lists.sowder.com
Subject: RE: Ideas on how to pass parms to QTP from QUICK
Val,
Thanks for the tip. I miss the good 'ol VMS days (sigh). I am now into
the Unix realm.
Cheers
-----Original Message-----
From: valentin.likoum at ncc.volga.ru [mailto:valentin.likoum at ncc.volga.ru]
Sent: Wednesday, September 21, 2005 2:17 PM
To: Fernando Olmos
Subject: Re: Ideas on how to pass parms to QTP from QUICK
On 21/09/05 fernando.olmos at hpa.com.au <fernando.olmos at hpa.com.au> wrote:
> Anyone have a good programming model on how to call a QTP program from
> within QUICK, but passing to it parameters (temporaries) from the
> calling QUICK program?
The easiest method IMHO is already mentioned env variables (through
symbols of logical names and read the value with GETSYSTEMVAL). The more
complicated method (for VMS 7.2 and later) is something like:
- write GENERIC_RUN.COM file:
$ say := write sys$output
$ pipe ( say "''P2'" ; say "''P3'" ; say "''P4'" ) | qtp auto='P1'
extend it above P4 if you need (I'm too lazy)
- write your QTP code with "DEFINE my_param1 char*20=PARM PROMPT...",
"DEFINE my_param2...",...
- call it from the QUICK
"RUN COMMAND @GENERIC_RUN MY_QTP.QTC PAR1 PAR2 PAR3 ..."
of couse, you can build cmd string in run time, concatenating PAR1,...
from the screen fields
--
Valentin Likoum
valentin.likoum at ncc.volga.ru
--
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l at lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request at lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request at lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
More information about the powerh-l
mailing list