Question - What are the types of environment variables in QTP?
Answer -
Environment variables in QTP are of three types:
1) Built-in (Read only)
2) User-defined Internal (Read only)
3) User-defined External (Read/Write)
You Set the Environment Variable using the following syntax
Environment.Value( “name”) = “Name”
You can Retrieve the Environment Variable using following syntax
Environment.Value(“name”) — This will retrun name as Name
Environment.Value(“OS”) — This will return your system OS