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



how do you find the number of occurences of string QTP from the expression , " QTP+QTP=2QTP&quo..

Answer / pankaj jaju

strArr = Split("QTP+QTP=2QTP","QTP")
numOccurrence = UBound(strArr)

Is This Answer Correct ?    18 Yes 1 No

how do you find the number of occurences of string QTP from the expression , " QTP+QTP=2QTP&quo..

Answer / tejesvini

Str1 = "QTP+QTP=2QTP"
var1 = Split(Str1,"QTP")
var2 = Ubound(var1)
msgbox var2

Is This Answer Correct ?    8 Yes 0 No

how do you find the number of occurences of string QTP from the expression , " QTP+QTP=2QTP&quo..

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

how do you find the number of occurences of string QTP from the expression , " QTP+QTP=2QTP&quo..

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

how do you find the number of occurences of string QTP from the expression , " QTP+QTP=2QTP&quo..

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

Post New Answer

More QTP Interview Questions

How QTP recognize the object??how to add objcts into object repository??

3 Answers  


What is the extension for Recovery scenario?

2 Answers  


Action1: I have a value "test" stored in a variable X. I want to use that variable X in Action2 .. how?

1 Answers  


How do you know the location Id of an object if you know its index id?

0 Answers  


What is output value? How many types of output values are there in qtp?

0 Answers  






How do you test siebel application using qtp?

2 Answers  


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.

2 Answers   3i Infotech,


how do close the task manager through QTP?

2 Answers  


what is the difference between window command and dialog command

1 Answers  


Hi Guys, My Application in Microsoft Dynamic Navision, is it compitibale with QTP? if yes then let me know...

0 Answers  


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

2 Answers  


When The Low Level Recording is Used in QTP

17 Answers  


Categories