Regular expressions.....
Actually how to use this and what is the exact syntax and
can anybody can help me out this with example.is there any
docs pls send to my mailid rvreddy82@gmail.com
Answer / its me
It is used for dynaic changing value like in supose number is varying from 51,52,53
'Regualar Expression syntax
Set Rx= New.RegExP 'regular expression object
Rx.Global = True
'Set true if you want to check more than one occurance string else fails
Rx.Ignorecase = True
'Set true if you do not want case senstive
Rx.Pattern = "(5[1-3])"
x = Rx.Test (Str)
if x = true then
msgbox "Matach"
Else
msgbox "Not Match"
End if
| Is This Answer Correct ? | 0 Yes | 0 No |
can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist 'code ************** Call login("lal="," " ) wait(5) Call errormsg("Invalid email address. [?]" ) Function errormsg(msg) msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist if msgexist then Reporter.ReportEvent micPass,"enter valid username or pwd ",msg else Reporter.ReportEvent micFail, "entered valid uname and pwd",msg end if End Function
How to get all the objects count and objects names in webpage using QTP ?
What is the use of "Step Generator" in QTP??for what purpose we are using??explain with an example
Tell me the difference between the Data Driven Frame work and Keyword Driven frame work?
What are the trigger events in qtp?
Synchronizing test
Why do we go for Qtp? What are the advantages of qtp? Diff between winrunner and Qtp?
What is keyword driven testing..what is the use of this in Automated testing
Hybrid framework supports Descriptive programming. Is it true?
what is the difference between the modular framework and datadriven frame work
give me descriptive programing code sample flight application in qtp?
w is configaration management