04-08-2009, 11:53 AM
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
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