how do you find the number of occurences of string QTP from the expression , " QTP+QTP=2QTP"
Answers were Sorted based on User's Feedback
Answer / pankaj jaju
strArr = Split("QTP+QTP=2QTP","QTP")
numOccurrence = UBound(strArr)
| Is This Answer Correct ? | 18 Yes | 1 No |
Answer / suresh meti
Str1 = InputBox("Enter any sentese ")
str2 = InputBox("Enter word to search")
var1 = Split(Str1,str2)
var2 = Ubound(var1)
msgbox var2
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / lavanya
Str = "QTP+QTP=2QTP"
for i=1 to len(str)
amid=mid(Str,i,3)
Msgbox amid
if amid = "QTP" then
cnt=cnt+1
end if
Next
MsgBox cnt
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / anwar basha
str="QTP+QTP=2QTP
str1=len(str)
k=replace(str,"QTP","")
str2=len(k)
msgox str1-str2
| Is This Answer Correct ? | 1 Yes | 2 No |
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
What are the Latest Feature are added In QTP 9.2?
hi nani my doubt is how does qtp process metrix related to software process.
Hi, Can anyone write the following qtp script...please its urgent ·Navigate to Google in a new IE instance ·Search for the following word "Gap, Inc." ·Iterate thought the first 10 pages of google ·On each page collect the following ·The "blue" page title ·The "green" url ·Output all the data into a file named "test_output.txt" ·Format "Title – URL"
What is iteration?
How to find which type of Framework is suitable for which type of application?
can QTP works on LINUX platfom
what is run action?
What is the another extension name of library file. If that is exist than what's the difference between them.
what is the difference between data driver & data driven and driver script?
In a WebTable 2nd row,3rd column contains one link and that link name is changing dynamically. How you will click the link?
Hey friends i m facing a problem when i m running my script in qtp it waits for about 5-10 secs before starting execution why it is so can any one solve my problem .Previously it was running fine