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 |
what is Automation frame work and how do u used this for your project?
What is the extension of script and object repositary files?
How u call functions in QTP
Thanks Rag... One more question, How we test the dynamic images which frequently changed?Using the bitmap checkpoint r any other options available.... Can u give the steps pls... Thanks
What is difference between Class and MicClass
What are some test assets and related extensions of qtp?
can test automation improve test effectiveness?
What is system testing and what are the different types of tests you perform in system testing?
Hi, How to invoke QTP or any application through Command Prompt without using Vb script and batch file.... Reply me Srinivas
how to test background color and dynamic images during runtime
How to create a Runtime property for an object in QTP?
I m trying to automate one vb desktop application in that there is vblist vbcombobox many other vb tools are there ,when i m trying to find some unique property to identify the object (take example of vbcombobox ) I cannot find any unique property, all the combobox belong to same nativeclass same name no ids are available ,only the distinct property is there x and y coordinates so i m using some code like this "vbbutton "nativeclass:=ThunderRT6CommandButton","x:=304","y :=443").exist(2)" but i dont find them reliable .Can anyone suggest me some other way to identify those objects with some unique property or is there any way to register our own property .I m using descriptive programming to write the code .Thanks in advance