Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 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)

1503


Which features or drawbacks of QTP lead to the upgrade for a newer version?

965


Explain about the test fusion report of quicktest professional?

888


1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

1481


What is the Difference between copy to action and call to action?

1062


Explain the concept of object repository and how qtp recognises objects?

984


What is data driver in qtp? Where we use it?

966


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

2157


desribe a situation where u faced a stressful situation and how did u cope with it

1814


who QTP recognizes the object stored in object repository?

2041


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?

1998


What are the data types in qtp?

1052


what is the difference between built-i function and In-built function?

2107


what testplan contents and what test strategy contents,what is the diff b/w them

2098


How you can write contexts to text file in qtp?

1005