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 |
i want know iam working 2+ exp in QTP can i do performence testing (eg:loadrunner) yes r no?
Who uses qtp tool?
I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Redfort"
we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?
How to find the path of folder in which the test is saved in qtp?
What is the quicktest professional testing process?
How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!
What are default add-ins in qtp?
How to open a new test using QTP?
What is the use of text output value in quicktest professional?
What is test automation framework?which framework does QTP follow?Need some practical explanation as to how u will start ur testing process following a particular framework?
How to retrive the property of an object?