QuickTest Professional (QTP) Question:
Download Job Interview Questions and Answers PDF
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.
Download QTP Interview Questions And Answers
PDF
Previous Question | Next Question |
How can I import environment from a file on disk? | What is checkpoint in QTP? |