Environment variables

Karen Barrett kbarrett00 at hotmail.com
Thu Jul 2 10:06:41 CDT 2009


Thanks a bunch David, this is very suitable.
 


Subject: RE: Environment variables
Date: Wed, 1 Jul 2009 15:41:28 +0100
From: David.Jackson at obs-logistics.com
To: kbarrett00 at hotmail.com; powerh-l at lists.sowder.com




Karen,
 
The QTP command you want is setsystemval("VARIABLENAME","VALUE")
 
Both the variable name and the value are strings and must be in the quotes, you might need to do some fiddling around because it has to be part of a conditional test and all the examples given in the Powerhouse manuals are in qdesign.
 

SETSYSTEMVAL (MPE/iX, UNIX, and Windows)
For SETSYSTEMVAL (OpenVMS), see (p. 449).
Assigns operating system values.
 
UNIX, Windows
 
TEMP RUN_REQ CHAR*1
...
> PROCEDURE DESIGNER 1
> BEGIN
> ACCEPT RUN_REQ
> IF NOT SETSYSTEMVAL("QTP_PARMS", ("RUN" + RUN_REQ ))
> THEN ERROR "Could not set environment variable"
> ELSE RUN COMMAND "qtp auto=$QTP_PARMS

 

Regards 
David Jackson     
Technical Consultant 
OBS Logistics Limited, The Oracle Building, Oracle Drive, Blythe Valley Park, Shirley, Solihull, B90 8AD
Tel: +44 (0)121 506 9773
EMail: David.Jackson at obs-logistics.com    Web: http://www.obs-logistics.com 
 



From: powerh-l-bounces+d.jackson=obs-logistics.com at lists.sowder.com [mailto:powerh-l-bounces+d.jackson=obs-logistics.com at lists.sowder.com] On Behalf Of Karen Barrett
Sent: 01 July 2009 05:41
To: PowerhouseList Post
Subject: Environment variables


Hi All,
 
Here is what I would like to do -
 
Run QTP inside a shell loop, if records updated then set a Unix environment variable to some value.  In my shell script, I will check to see if "updated" and quit or loop again.
 
Thoughts?
 
Karen Barrett




OBS Logistics Limited is a limited company. Registered in England No 02439258. Registered Office: 140 Buckingham Palace Road, London SW1W 9SA.


_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20090702/a96e953d/attachment.htm 


More information about the powerh-l mailing list