Regular Expression in QTP - 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 Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions) +--- Thread: Regular Expression in QTP (/Thread-Regular-Expression-in-QTP) |
Regular Expression in QTP - karthik - 04-08-2009 Hi, I am currently working in a project which is similar to msword.I am currently having problem in using regular expression in Qtp 9.2.My task is to open different doc extension files using datatable.The problem is when the data table is moving to the second file.It displays a msgbox as "Object not found in the object repository".(For example first file name is "S1.doc" and the second file name is "Test.doc").I have tried in 2 different ways 1)I have changed "Test.doc" as [\w*.doc] in the constant in object repository.Then i selected highlight the application.It is recognizing both file1 and file2.But when i am running the script it displays the same msgbox. 2)Then i have opted to select the 'parameter' radio button in the 'value configuration options' dialog in object repository.Then i have choosed data table and enabled regular expression.(Screenshot is attached).Then i selected highlight the application.It is recognizing both file1 and file2.When i run the script it is not even recognizing the first file. Can any one help me with suitable regular expressions.It would be a great help for me.. Thanks & Regards, Karthik.R RE: Regular Expression in QTP - papu - 04-10-2009 Hi, Please try [\w*\.doc].Have not checked this .but one thing to make the dot to be treated as a literal use \ RE: Regular Expression in QTP - karthik - 04-17-2009 K i will try and let u know.. Thanks & regards, Karthik |