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 / nagk24
here one more using loops and inbuilt functions
cnt=0
a="HELLO WORLD"
For i=1 to len(a)
n=mid(a,i,1)
If asc(n)=asc("L")Then
cnt=cnt+1
End If
Next
print cnt
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
What are the benefits of qtp?
Explain sub procedure of vbscript.
What are the different types of recording modes in qtp? Which will be used when?
The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)
What is Distributed testing? How does UFT support it?
Difference between test object and run time object?
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
write script for bitmap image?
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
How to find the name of the machine where you are running your automation scripts in qtp?
What are the different attribute used with regular expression?
What are the advantages of qtp?
How do you open adobe acrobat file in QTP and do some testing on that file ?