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
A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.
what are the mandatory properties for a tex boxc (scenario?)
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
What are the different types of functions available in qtp and explain ?
Both static and dynamic arrays are handled by the vb script. Is it true?
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...
Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement
What is the Command used to start the QTP
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
what is meant by source control?
how to test use the quality control .how to verify the image verification
Explain how you can replace string in qtp?
Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?
how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance
Explain the concept of object repository & how qtp recognizes objects?