Geeks Talk

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.

Regular Expression

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

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 06-19-2007
Junior Member
 
Join Date: Jun 2007
Location: bangalore
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
gouthami123 is on a distinguished road
Regular Expression

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.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-27-2007
Junior Member
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Santosh TR is on a distinguished road
Re: Regular Expression

Thank You So Much
Reply With Quote
  #3 (permalink)  
Old 08-17-2007
Junior Member
 
Join Date: Jan 2007
Location: hyderabad
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
ramugogurla is on a distinguished road
Re: Regular Expression

Quote:
Originally Posted by gouthami123 View Post
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.
sorry ya... we r also searching.. once v r getting inform u.....
Reply With Quote
  #4 (permalink)  
Old 08-17-2007
Contributing Member
 
Join Date: Mar 2007
Location: Florida,United States
Posts: 35
Thanks: 0
Thanked 2 Times in 2 Posts
myth.ks is on a distinguished road
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
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 03:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved