Ideas on how to pass parms to QTP from QUICK
fernando.olmos at hpa.com.au
fernando.olmos at hpa.com.au
Tue Sep 20 23:26:31 CDT 2005
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
More information about the powerh-l
mailing list