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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins

1526


Explain different checkpoints in qtp.

801


Explain advantages and disadvantages of ddf?

677


Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

2296


I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?

1751






Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??

1715


how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief

1647


Without using gui map editor we can recognize the application in winrunner ?

687


How to associate function library at a run time?

797


What are the methods used in UFT to handle exceptions or run-time errors?

738


Explain advantages and disadvantages kdf?

605


hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]

1546


How does qtp identify objects in the application?

667


What is synchronization? What are the ways you can synchronize?

745


What are the Disadvantages of shared object repository?

662