Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - What is environment variables?




305
views
asked marvit August 13, 2014 08:45 AM  

What is environment variables?


           

1 Answers



 
answered By Dharma   0  
Environment variables in QTP are variables whose value is available for all actions in a test. These values are available globally for any actions, libraries, recovery scenarios etc. There are mainly two types of environment variables, Built-In and User-Defined.

Basic syntax to get an environment value is
Enviornment.Value (“variable name”)

To get test result directory path you have to use
Enviornment.Value (“ResultDir”)

Default property or Environment is value so we can get the same value with
Environment (“ResultDir”)
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert