Ideas on how to pass parms to QTP from QUICK

Valentin Likoum valentin.likoum at ncc.volga.ru
Tue Sep 20 23:19:44 CDT 2005


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

PS: Fernando, sorry for sending first msg directly instead of the list.

-- 
  Valentin Likoum
  valentin.likoum at ncc.volga.ru



More information about the powerh-l mailing list