| || |
I faced a strange thing today
Intellisense in my QTP shows that Environment.LoadFromFile takes 2 parameters
1. The filename
2. Optional parameter, true/false to keep the file loaded
Using the second parameter does not give an error although the functionality does not work
I moved my script to another PC ( say PC2) which has the same QTP version and build and the same wscript version
The script gives an error on PC2.
Also intellisense on PC2 says that Environment.LoadFromFile accepts only one parameter i.e the filename
Does anyone has any inputs on this ?
You must have installed the consolidated patch on your machine which adds that 2nd parameter. It plays a vital role when you load the environment file using QTP AOM and before running the test.
Earlier the values used to vanish when the test was run