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.

Descriptive Programming Concepts - Good thread for Starters

This is a discussion on Descriptive Programming Concepts - Good thread for Starters within the QTP forums, part of the Software Testing category; Use .* for regularexpressions ex: browser("name:=yahoo.*").page("title:=yahoo.*").webedit("name:=usern.*).set "Rajaputra"...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #21 (permalink)  
Old 06-01-2009
Expert Member
 
Join Date: Sep 2007
Location: Hyderabad
Posts: 115
Thanks: 1
Thanked 19 Times in 15 Posts
rajaputra is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

Use .* for regularexpressions

ex:
browser("name:=yahoo.*").page("title:=yahoo.*").webedit("name:=usern.*).set "Rajaputra"
__________________
__________________

Thanks & Regards!!
RAJAPUTRA
www.makeqtpeasy.blogspot.com
http://rajaputra.spaces.live.com/
Reply With Quote
Sponsored Links
  #22 (permalink)  
Old 06-01-2009
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,464
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Descriptive Programming Concepts - Good thread for Starters

Hai friend,

open qtp and paste this in expert view, so that you can have basic idea regarding regular expressions

try this

function regexptest(patrn, strng)

dim regex, match, matches ' create variable.
Set regex = new regexp ' create a regular expression.
Regex.pattern = patrn ' set pattern.
Regex.ignorecase = true ' set case insensitivity.
Regex.global = true ' set global applicability.
Set matches = regex.execute(strng) ' execute search.
For each match in matches ' iterate matches collection.
Retstr = retstr & "match found at position " retstr = retstr & match.firstindex & ".
Match value is '" retstr = retstr & match.value & "'." & vbcrlf
next
regexptest = retstr
end function

msgbox(regexptest("is.", "is1 is2 is3 is4"))

thanks
deepa

Last edited by deepasree; 06-01-2009 at 08:25 AM.
Reply With Quote
  #23 (permalink)  
Old 07-07-2009
Junior Member
 
Join Date: Jul 2009
Location: Bangalore
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Anuj007 is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

can some one give a small code which explain all type of commonly used QTP frame work?
Reply With Quote
  #24 (permalink)  
Old 07-07-2009
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,464
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Descriptive Programming Concepts - Good thread for Starters

Quote:
Originally Posted by Anuj007 View Post
can some one give a small code which explain all type of commonly used QTP frame work?
hai friend,

QTP framework is not a small thing which can be explained with a small block of code. One more thing please start a new thread when you have a question.

Thanks
Deepa
Reply With Quote
  #25 (permalink)  
Old 07-22-2009
Junior Member
 
Join Date: Jul 2009
Location: Bangalore
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
someswararao.taninki is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

Quote:
Originally Posted by Sreeman03 View Post
how to write descriptive programming for regular expression for web based applications in qtp.
Example:
tmp1 = Browser("micClass:=Browser").Page("micClass:=Page").WebElement("html tag:=B","innertext:=My Certifications.*")
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
Descriptive Programming thotaravikiran QTP 12 09-02-2009 04:44 AM
QTP Script to descriptive programming niturao QTP 3 05-28-2008 04:47 PM
QTP DEscriptive Programming balajimaddy QTP 2 12-21-2007 10:17 AM
Descriptive programming any flight application Geek_Guest QTP 0 08-15-2007 05:12 AM
Descriptive Programming and Visual Basic Scripts Geek_Guest QTP 1 07-11-2007 04:24 PM


All times are GMT -4. The time now is 08:56 AM.


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