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 will you check how many members visited the website www.infosys.com?

1484


HOw to add the recovery file at runtime to the test file .

1543


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1419


Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com

1433


What is a quick test professional?

633






Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in

1603


Explain advantages and disadvantages of ddf?

600


What are the different types of checkpoints?

588


how will load the object during runtime?

1586


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1569


How to interact tool & application build in QTP?

1465


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com

1500


What is output value? How many types of output values are there in qtp?

580


Does QTP record on Objects created on XWindows Environment?

1662


What is Unicode Compatibility?

1453