How can I check if a environment variable exist or not?
QuickTest Professional (QTP) Questions and Answers
(Continued from previous question...)
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.
(Continued on next question...)
Other Interview Questions
|