write is the code for regular expression in QTP
Answer Posted / 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 |
Post New Answer View All Answers
i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script
Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji
What are the Application Functions available in QTP?
How to use checkpoints in qtp ?
explain structured testing? plz guys with exp. do answer
What is the expert view?
What is Curd testing?
What are the trigger events in qtp?
Explain the use of action split in qtp?
For which type of project the iterative model is suitable?
How to release all resources file from the QTP?
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",
how can we compare descriptive programing with a regular expression
after initiating one project for testing, when exacltly QTP tester role starts?
How will you check that your test cases covered all the requirements?