Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Regular Expression within the QTP forums, part of the Software Testing category; hello, Can anyone tell me how to use regular expressions in qtp.and wht does tht mean if provided with example...it would be great help....
|
|||||||
|
|||
|
Re: Regular Expression
Quote:
sorry ya... we r also searching.. once v r getting inform u.....
|
|
|||
|
Re: Regular Expression
Regular expression are used when the part of the particular property of an object which was used most oftenly changes dynamically ..
Say suppose for an example...take google application.. Iteration1: Enter QTP in the search edit box Click on the Search button Ieration2: Enter Winrunner in the search edit box Click on the search button in the above scenario Search edit box(QTP and Winrunner) can be parameterized.When we hit the search button, the browser name will be "Google - QTP" for Iterantion1 and "Google - Winrunner" for iteration2. So "Google" is the common word for the browser name property.Here we can use regular expression to make the script reusable. v_SearchText = DataTable("SerachText","Action1") Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").Set v_SearchText Browser("name:=Google").Page("title:=Google").WebButton("name:=Search").Click Browser("name:=Google.*").Page("title:=Google.*").WebEdit("name:=q","index:=0").Set "Mercury" Hope u got some idea now
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Regular Expression in QTP | radhika_inala | QTP | 23 | 12-03-2009 05:20 AM |
| How to use regular expression in QTP for an combo-box in Java Application. | Livetek | QTP | 1 | 02-28-2008 06:37 AM |
| How to identified using regular expression | Geek_Guest | QTP | 2 | 01-22-2008 08:48 PM |
| Explain how to use regular expression | Geek_Guest | QTP | 1 | 06-15-2007 12:13 AM |
| What is Regular Expression? | JobHelper | Testing Issues | 1 | 12-16-2006 06:17 AM |