QuickTest Professional (QTP) Question:
How can I check if a environment variable exist or not?

Answer:
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.
Previous Question | Next Question |
How can I import environment from a file on disk? | What is checkpoint in QTP? |