Micro Focus QTP (UFT) Forums
Environmental Variables and Global Variables - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Environmental Variables and Global Variables (/Thread-Environmental-Variables-and-Global-Variables)



Environmental Variables and Global Variables - BVVPrasad - 12-29-2010

Hi,

Is there any difference between Environmental variable in terms of usage. Can some one explain this.

Please post any information that you are aware of the two kinds of variables here so that it is useful for the one who views this thread.

Thanks in advance,
Prasad.


RE: Environmental Variables and Global Variables - leninraj - 12-30-2010

Hi Prasad,
The Environment & Global Variables are just the same, you can define in the QTP tool itself or through any XML file.Once you define it you cannot change the value in your test script/function.
But there is another way you can define those through globaldatadictionary,here you can change the variable at any time in the test script and the scope is global too.Check the QTP man pages for global dictionary, you need to make some registry entries for the first time.

Rgds
Lenin.


RE: Environmental Variables and Global Variables - rajeshwar - 12-30-2010

Internal Enviornment variables value can be changed in our test script.values of External Enviornment variable can not be changed in the script.