Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Environmental Variables and Global Variables
#1
Solved: 11 Years, 4 Months ago
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.
Reply
#2
Solved: 11 Years, 4 Months ago
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.
Reply
#3
Solved: 11 Years, 4 Months ago
Internal Enviornment variables value can be changed in our test script.values of External Enviornment variable can not be changed in the script.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading Global Sheet's DataTable Value Bhuvana 0 1,640 01-05-2020, 10:03 PM
Last Post: Bhuvana
  Error as Global Not defined while trying to retrieve value from Datatable siddharth1609 0 965 09-11-2019, 02:52 PM
Last Post: siddharth1609
  global object which can be called in any action excellentpawan123 2 2,769 04-01-2015, 07:34 PM
Last Post: babu123
  Sometimes there is Global datasheet. utestqa 0 2,716 10-02-2013, 07:09 PM
Last Post: utestqa
  where to declare variables?? ACCBAJPA 0 2,372 10-01-2013, 07:20 PM
Last Post: ACCBAJPA

Forum Jump:


Users browsing this thread: 1 Guest(s)