tell me about regular expressions in QTP? where we use?
give eample?

Answers were Sorted based on User's Feedback



tell me about regular expressions in QTP? where we use? give eample?..

Answer / kotike

Qtp may not recognize the objects whos porperty values are
dynamically changing.In those situation we can use regular
expressions.

for example: in your mail inbox you have 15 messages

u recorded this and in object repository it stores inbox
(15)

assume u got few mails and now your inbox having 20 mails.
now you run the script which ever you recorded. The qtp
will not recognize the inbox(15) .because right now your
inbox having 20 messeges.

in this situation you need to reqularize the inbox as
follows

inbox\(\d+\)
now qtp will identify

Regards,
mahi.kotike@gmail.com

Is This Answer Correct ?    1 Yes 0 No

tell me about regular expressions in QTP? where we use? give eample?..

Answer / shivaji rao

Explain clearly answer...

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How to use transactions in qtp?

0 Answers  


results.xls file is automatically generated while running the script in QTP.But it is showing error to open the file

1 Answers  


Get the count of files of similar types from a folder.

0 Answers   Deloitte,


what is ODC and GDC?

0 Answers   Patni,


what is difference between wait and synchronization point.

3 Answers   IBM, Intel,






3.How to record a word doc using qtp i.e open a word doc,type something and save the doc can someone send me the code.

5 Answers  


What is the syntax to call one action in another?

0 Answers  


In google i'm going to search something like "rose", i usually get 10 results in the first page and in 2nd page 10 results and in 3rd 10 results so on upto 10th page 10 results. so if i want to open all the 10 pages 10 results i.e., 100 results and close..what is the DP for this? pls can anyone answer my Question..PLZZZZZ...

4 Answers   Indium Software,


what is On Error Resume Next ?

4 Answers   Accenture,


Write Descriptiv prg 4 login logn....txt bx password---txt bx ok---btn

2 Answers   Hewitt,


In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click

2 Answers  


There is one login screen,after accepting valid username and apassword, it will show the next screen. In the 2nd screen u r having 2 combo boxes, U have to select any item from these, and click OK button. After closing that, it will show the 3rd screen. If u click CANCEL button from 2nd screen it will show the first screen. Write QTP script for it???

1 Answers   Sonata,


Categories