how to get relative path by using testdir environment variable - 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: how to get relative path by using testdir environment variable (/Thread-how-to-get-relative-path-by-using-testdir-environment-variable) |
how to get relative path by using testdir environment variable - Sathyaprasad - 11-22-2017 How do I *change the directory* which the environment variable "TestDir" is pointing to? So, if I have: myVar = Environment("TestDir") where myVar = "C:\Users\User\Documents\Unified Functional Testing\UFT scripts" How do I make it point to "C:\Users\User\Documents\*"? RE: how to get relative path by using testdir environment variable - supputuri - 11-30-2017 Save the script in "C:\Users\User\Documents", then check the TestDir |