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 |
How QTP recognize the object??how to add objcts into object repository??
What is the extension for Recovery scenario?
Action1: I have a value "test" stored in a variable X. I want to use that variable X in Action2 .. how?
How do you know the location Id of an object if you know its index id?
What is output value? How many types of output values are there in qtp?
How do you test siebel application using qtp?
I have a web table,in that web table in 3rd row 4th coloumn i have a link how to click it with descriptive programming? I have a webedit without entering any value how to calculate the size of that field? I have a DB table , how to find the 5th highest salary? write query.
how do close the task manager through QTP?
what is the difference between window command and dialog command
Hi Guys, My Application in Microsoft Dynamic Navision, is it compitibale with QTP? if yes then let me know...
Hi all , I am new at QTP I want a sample script to check validation messages(For java script or VB script) for login page with for web based application.. Any one can Help. I have to complete it in two days I need urgent help.. Ex. if I want to check mail.yahoo.com 1 > If user doed not exist it display "Username does not exist" 2> if invalid Uname and password then it display" Invalid Uname or pass" 3> Loing Sucssessfully. I want to check this types of application by using data table to give values of username and password.. Thanks
When The Low Level Recording is Used in QTP