Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression in QTP
#1
Not Solved
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


Attached Files Image(s)
   
Reply
#2
Not Solved
Hi,
Please try [\w*\.doc].Have not checked this .but one thing to make the dot to be treated as a literal use \
Reply
#3
Not Solved
K i will try and let u know..

Thanks & regards,
Karthik
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,484 10-05-2016, 11:05 AM
Last Post: Ankur
  Regular expression to read two words in lowercase, uppercase and with and without spa sarahq49 1 3,353 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,817 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,565 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,114 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 1 Guest(s)