Hi...
Can anybody help me to write the vbscript for this
question..!!! Am having a string "HELLO WORLD", i want to
find how many "L"s are there.....?????
--> HANEEF <--
Answer Posted / ashok kumar
str = "HELLO WORLD"
Set regex = New RegExp
regex.pattern = "L"
regex.Global = True
Set matches = regex.Execute(str)
msgbox matches.count
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
Some time when i wanna learn the object i face issue like i am not able learn the object in proper manner... eg:for text bo on web page it should learn as webedit but some times it reads as winobject:internetexpoler-server, because of this i have to uninstall the qtp and re-install it again when i do this it reads the object perfectly.....plz suggest the soln
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
What is the registration process and examination fees?
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
What are the different types of recovery operation?
How QTP support all types of applications (platforms)?
Explain the difference between call to action and copy action?
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me
How many types of recording modes in qtp? Which will be used when?
What are test settings and global settings?
what is the mail use of frame work(with detail). architecture for keyword driven frame work
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
what function you write to do database testing with the help of qtp?