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
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
how to post xml data from QTP scripts to any application?
Differentiate the type of test cases which can be automated and which cannot be automated?
How to record a qtp script ?
What is the significance of “action 0” in qtp?
Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay
What is the script for database check point, bitmapchek point, regular expression ?
How the smart identification is used in real time?Please explain with an example
What is use of object spy?
Explain Descriptive Programming Types with Examples?
What are the recording modes in qtp?
Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version
Can the user toggle between using Local OR and shared OR for the same action?
What are the different types of recovery operation?
Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)