Environment variables

How is an environment variable defined at run time?


           Environment(“Test Name”)=val

                 Note : The act of assigning a value to a non-existent environment variable causes QTP to implicitly create and initialize the variable.



How external variables laoded from an external XML file during run time?

          Environment.LoadFromFile “path”

How is an environment variable cleared or destroyed?

          Environment(“Test Name”)=”test”
          Environment(“Test Name”)=Nothing
 
Contributed by: Vamshi Gowtham
m.vamsigowtham@gmail.com