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

Answer Posted / uday

ex
if we take flight reservation table (coz its easy to
understand the concept)
just record the script like this
go to file open order give no 5
and go to fax order type any fax no click send
and stop recording
then go to qtp script just change the script (the order no
to 6 )
Window("Flight Reservation").Dialog("Open
Order").WinEdit("Edit").Set "6"
and run the script we get the error as qtp could not
identify the fax order no 5
then go to repository select fax order no change the value
to "fax order no. *"
run it u get it

Is This Answer Correct ?    46 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

1517


Explain the concept of object repository & how qtp recognizes objects?

663


how will load the object during runtime?

1672


What is quicktest professional (qtp)?

651


How can i check items sorted or not in a weblist ? Give me the script for this...

1663






What is the difference between rational rose and QTP?

1873


How is a Step generator used in UFT?

756


How many types of object repository in qtp?

709


How can you give wait up to 10 seconds in qtp?

684


How to add synchronisation points in qtp?

661


With what extension you can save the list of tests in a file to run in test batch runner?

654


What is keyword driven framework?

715


What is the difference between a Function and Action in QTP?

700


What is Test Fusion Report in QTP?

729


Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?

1662