How can i check if a environment variable exist or not?
When we use Environment(”Param1″).value then QTP expects the environment variable to be already defined. But when we use Environment.value(”Param1″) then QTP will create a new internal environment variable if it does not exists already. So to be sure that variable exist in the environment try using Environment(”Param1″).value.


Sangeetha | Jun 15, 2007 | Reply
The explanation is clear.
We are trying to build a script to automate a work in different machine.When we run the scripts individually the scripts work fine but when we run them in diffrent machine at the same time we get few errors, which is because of the variable change.
How is that environment variable are getting changed?