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
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
Which features or drawbacks of QTP lead to the upgrade for a newer version?
Explain about the test fusion report of quicktest professional?
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
What is the Difference between copy to action and call to action?
Explain the concept of object repository and how qtp recognises objects?
What is data driver in qtp? Where we use it?
www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example
desribe a situation where u faced a stressful situation and how did u cope with it
who QTP recognizes the object stored in object repository?
I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?
What are the data types in qtp?
what is the difference between built-i function and In-built function?
what testplan contents and what test strategy contents,what is the diff b/w them
How you can write contexts to text file in qtp?