write is the code for regular expression in QTP
Answers were Sorted based on User's Feedback
Answer / raj
'Prepare a regular expression object
Set myRegExp = New RegExp
myRegExp.IgnoreCase = True
myRegExp.Global = True
myRegExp.Pattern = "regex"
Pop up a message box for each match
Set myMatches = myRegExp.Execute(subjectString)
For Each myMatch in myMatches
msgbox myMatch.Value, 0, "Found Match"
Next
Is This Answer Correct ? | 6 Yes | 1 No |
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
In an output value text checkpoint, where does the output value stored by default ?
How do you invoke any application and write a script to invoke QTP using VB Script.
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
What are output values and why they are used ?
What is the difference between Normal mode and Fast mode ?
what is description object?
hi,i have a pblm in qtp,im testing an webappl in which different types of error pop up messages are displayed which qtp is not differentiating or it is not recognising. how do i make it recognise different popup errorm messages while writing script?
difference between GetRoProperry and GetToProperty.and where we've to use exactly those properties
How can we use the "CreateObject("Wscript.Shell")" in QTP and what is the definition and purpose of it?
What is test object?
How do u do batch testing in WR & is it possible to do in QTP, if so explain?