How is that? If you worked for me and used a global or env var to be acted on by a func, I'd make you write it over. If encapsulated data is needed for your test, use classes.
On Aug 25, 2009, at 9:55 AM, Avi <[email protected]> wrote: > > consider a scenario when your script is calling function from another > vbs file and you want to pass across the variable. it is better > handled using env vars than passing a var to the function. > > On Aug 25, 8:37 pm, Roman Zilber <[email protected]> wrote: >>> Can simple variables do the work of environment variables ? >> >> They doesn't. >> The simplest way to answer the question is to try it. >> >> Scope of global variable is current script file, each call of >> Action (even >> when it executed in iteration) is call of a _copy_ of the same >> script... >> >> On Tue, Aug 25, 2009 at 1:47 AM, kapil sachdeva >> <[email protected]>wrote: >> >> >> >>> Hi friends, >> >>> Could you please answer my below query: >> >>> why do we use environment vaiables and how they are different from >>> normal >>> global variables? >>> Can simple variables do the work of environment variables ? >> >>> Thanks and Regards >>> kapil > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
