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 |
w is recovery senario manager
I want to learn QTP Online, where can I get quality training?
how can we merge the object repositories?is ther any option in qtp to merge the object repositories if we have two or three object repositories?
i have an array CAPGEMINI .....Here i need to check whether G is there or not ..how to do that and friends i have one big doubt that is whether it is array or string ,how we come to know that and where we consider that it's array ,where we consider that it's an string because when i want to find the length i have big doubt whether we need to use len function or ubound ... ans me for this TWO Questions any one please
write a script to verify the image path(src property) of the images which are in web pages.(do it by Descriptive method by creating a description object)
how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0
Lets say,flipkart website...in search button we have entered category[i.e watches] it displays some items...question is how to test price displayed each product is correct or not through qtp
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?
Can we add the function library directly from scripting in qtp instead of adding from resource tab?
can anyone please tell me what are all the shortcut keys used for qtp9.2? Thanks in advance..i expect ur valuable reply that help us our team???
How to handle recovery scenario for a application crash.write script for this.
What is the difference between Mandatory and BaseFilter Properies..Anybody please answer me..Thanks in Advance