How to use Regular Expressions in QTP? give an example.

Answer Posted / uday kumar. a

In QTP, delaing of Regualar Expressions and varing object
descriptions can be handled by using Description
Programming.
Ex. of using Regular expression is:
u just record yahoo login operaion and click on Inbox link.
Assume u got 10 new mails, then it shows like Inbox(10).
Read one mail, now it shows like Inbox(9). Now try to play
the recorded script. It wont work. Now use Regular
expression in Inbox link like:
"Inbox.*". At that time it wil work.

Is This Answer Correct ?    98 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we analyze the checkpoint results?

569


An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?

648


Why bpt?

586


Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

1739


When you open QTP, how many sheets you can see?

641






What is reusable action?

589


What is contained in the object repository?

604


Why qtp always start action1 and does not start action?

594


How to record a qtp script ?

546


Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?

636


How to create runtime property for an object?

1440


What are the differences between quicktest professional (qtp) and winrunner?

561


you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva

1488


What is the purpose of loading qtp add-ins?

616


In what occasion we can specify global sheet and action sheet?

558