Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

w is recovery senario manager

3 Answers   Infosys,


I want to learn QTP Online, where can I get quality training?

15 Answers   CSC,


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?

6 Answers   IBM,


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

7 Answers   Cap Gemini,


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)

1 Answers  


how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0

0 Answers  


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

1 Answers   Cap Gemini,


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?

0 Answers  


Can we add the function library directly from scripting in qtp instead of adding from resource tab?

5 Answers   IBM,


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???

1 Answers  


How to handle recovery scenario for a application crash.write script for this.

2 Answers   Polaris, TCS,


What is the difference between Mandatory and BaseFilter Properies..Anybody please answer me..Thanks in Advance

3 Answers   BirlaSoft,


Categories