QTP script to read QTP filename - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: QTP script to read QTP filename (/Thread-QTP-script-to-read-QTP-filename) |
QTP script to read QTP filename - hari1024 - 12-06-2011 Hello, I am trying to add a piece of code to our framework where we are trying read the name of the file thats being run.For example:If I have a script 'TestCase1'.I need to write a piece of VbScript code which reads reads the filename and stores in a variable.The code is written within the file itself. Hari RE: QTP script to read QTP filename - sshukla12 - 12-06-2011 You can use Environment("TestName") to get the name of file. Please correct, if wrong. Regards, Sankalp RE: QTP script to read QTP filename - hari1024 - 12-06-2011 Thanks Sankalp That was easy! RE: QTP script to read QTP filename - sshukla12 - 12-07-2011 U r welcome.. |