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 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"...
|
|||||||
|
|||
|
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/ |
| Sponsored Links |
|
|||
|
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. |
|
|||
|
Re: Descriptive Programming Concepts - Good thread for Starters
Quote:
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 |
|
|||
|
Re: Descriptive Programming Concepts - Good thread for Starters
Quote:
tmp1 = Browser("micClass:=Browser").Page("micClass:=Page").WebElement("html tag:=B","innertext:=My Certifications.*") |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |