Global Temps in QTP
PAUL DIACONESCU
paul_diaconescu@hotmail.com
Wed, 08 Dec 2004 17:12:50 -0500
Hi Christina
At least one record has to be selected , in order to have your global temp
initialized in request ONE
Probably in test envirnment, you have no records selected in request ONE.
paul diaconescu
>From: Harvey Orom <harvey@oromconsulting.com>
>To: powerh-l@lists.sowder.com
>Subject: Global Temps in QTP
>Date: Wed, 08 Dec 2004 09:52:40 -0800
>
>Hi,
>
>I am using Powerhouse 7.10.G1 and I am having a problem with global temps
>being set in one request, but the values in the temps being dropped for the
>request immediately following:
>
>i.e
>
>$ START_DATE :== "20010101"
>$QTP
>run runname
>global temp g_start_date char*8
>
>request ONE
>
>access *xyz
>item g_start_date = GETSYSTEMVAL("START_DATE",symbol)
>
>select if starting_date of xyz > g_start_date
>
>request TWO
>
>access *abc
>
>select if starting_date of abc > g_start_date
>
>
>The first select in Request one works but the second one does not. The
>mystery is that this code has been working in Production for years, but
>fails in the test environment.
>
>I can fix the problem as follows in the test environment, but why does it
>work in prod?
>
>global temp g_start_date char*8 initial GETSYSTEMVAL("START_DATE",symbol)
>
>Has anyone else had a problem like this?
>
>Thanks in advance... Harvey
>Harvey Orom
>
>