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

Answer Posted / umasankar

Regular expressions enable QuickTest to identify objects
and text strings with varying values.You can use regular
expressions only for values of type string.

You can use regular expressions when:

1) Defining the property values of an object in dialog
boxes or in programmatic descriptions.

2) Parameterizing a step.

3) Creating checkpoints with varying values.

Example:

your site may include a form in which the user inputs data
and clicks the Send button to submit the form. When a
required field is not completed, the form is displayed
again for the user to complete. When resubmitting the form,
the user clicks the Resend button. You can define the value
of the button's name property as a regular expression, so
that QuickTest ignores variations in the button name when
clicking the button.

Is This Answer Correct ?    34 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the hierarchy to use properties in descriptive programming

1503


Tell me about your project? please help me how to tell about insurance project

1537


write a script to verify the image path(src property) of the images which are in web pages.

1809


What do you to script when objects are removed from application?

616


What is expert view in qtp?

587






What is the limitation to XML Checkpoints?

1605


Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

1523


Explain QTP using different development techniques ?

540


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

1730


what is supply chain management?

2091


how to disable the pop ups through QTP using a script

1730


How to export quicktest professional (qtp) results to an .xls file?

602


• What type of testing questions will be asked for 2+ yrs exp people in interview?

1259


Explain xml checkpoints.

601


what is the structure for the data driven framework

1484