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

How to get popup error message.

1023


in a web page hoe to check the dynamic links that rechabging with out using regular expressions

1768


Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?

1456


How to import a test case present in ".xls" file to TD under a Test set?

732


What is test object model in quicktest professional (qtp)?

536






What is Test Fusion Report in QTP?

612


What are main panes available in qtp test browser?

528


I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.

1730


Hi, how can we check or avoid the memory leakage in QTP9.2?

1694


what frame work you are following?

1516


What is checkpoints for qtp?

522


What is clean sweep?

1368


Where is the Bitmap checkpoint information stored?

1750


if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp

23873


Hi How to retrieve data from web element line by line?

1567