can we use any extension other than .xml , .ini , and .tsr
with the loadfromfile method?
e.g. Environment.LoadFromFile ("c:\myFile.xml")
"I realize it's an error, but no one is going to try to do that!"
From "Top 10 Stupid Comments from Developers".
My guess, it will support only .xml
As per help only XML file is supported. But it might work with INI as well (just check) but not for any other format thats for sure.
Buy the NEW QTP Descriptive Programming Unplugged Book
** Download QTP Unplugged 2nd Edition eBook for FREE **
I am sure about .ini because I used to use ini files before QTP8.2
We can import the Environment files having extensions .ini or .xml only(i guess you know the format of .ini file). You can use same syntax that will be used for importing .xml file.
msgbox Environment.Value("Path")'Path is a variable in sample file.