In script one declare the values for env variables like
Environment.Value(" STime ") = StartTransaction
--
--
--
Environment.Value(" ETime ") = EndTransaction
Start and end transaction will have the time duration in milli seconds.
In second script you can call the environment variable as
SSTime = Environment.Value(" STime ")
SETime = Environment.Value(" ETime ")
For third script you can call as
TSTime = Environment.Value(" STime ")
TEtime = Environment.Value(" ETime ")
You can do for any number of scripts
*Thanks and RegardsSatheesh Kumar .D*
On Thu, Jun 28, 2018 at 12:34 PM, <[email protected]> wrote:
> Thanks Nikhil for a quick response. However that's not what I'm looking
> for. Let me see if I can explain my problem in a different way.
>
> Script 1 has the following Env variables
> StartTime (Captures the start time of the script)
> EndTime (Capture the End time of the script)
>
> I want to copy those two env to Script 2, Script 3, Script 4 and Script 5.
>
> What's the easiest way to do that?
>
> Thanks
>
>
> On Wednesday, June 27, 2018 at 9:18:38 PM UTC-4, Nikhil Gangwar wrote:
>
>> Hi,
>>
>> If I understand your problem correctly, The problem you are facing is to
>> update Environment Values every time if you are executing script of
>> different machine.
>>
>> So You can try one solution, Keep a copy Environment Variable file and
>> update it once and save it at seperate place. Whenever you need to execute
>> the latest script you can replace existing Environment variable file with
>> your own Environment variable file. Everyone who is expecting to execute
>> the script will have their own Environment variables. Whenever anyone needs
>> they can replace it and use it without changing it again and again.
>>
>> I think you will have Environment variables in Xml or .vbs file so use
>> the same name while replacing Environment file. Additionally you need to
>> add any new Environment Variables if you add anything new.
>>
>>
>> Nikhil
>> Sent from my iPhone
>>
>> On 28 Jun 2018, at 4:20 am, [email protected] wrote:
>>
>> Hi,
>>
>> Is there an easy way to copy the environment variable names from one
>> script to another? I don't want to load them because then they are
>> external and I cannot update them, My scripts are executed by different
>> people on different machines. However most of these scripts use the same
>> environment variables. It's a lot of work to add those variables to each
>> script one by one. Is there a way I can copy the env variables?
>>
>> Thanks
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "QTP - HP Quick Test Professional - Automated Software Testing" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.