Using Built-in Environment Variables - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Using Built-in Environment Variables (/Thread-Using-Built-in-Environment-Variables) |
Using Built-in Environment Variables - Suba - 04-01-2011 Hi, Can someone please let me know how I can refer to a "Built-in Environment Variable" within my QTP test? For example, I tried to refer the variable "TestDir" as TestDir and Environment.TestDir. Nothing worked. I have tried searching in the Forum, did not notice any. Please help. Thanks. Subha RE: Using Built-in Environment Variables - supputuri - 04-01-2011 Hi, Code: msgbox Environment.Value("ActionName") The first line will pull the action name and the second loc will pull the Test dir. Let me know if you need any further info. RE: Using Built-in Environment Variables - Suba - 04-01-2011 Thanks Supputuri! That works I was applying wrongly. |