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

Answer Posted / tejesvini

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

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))

1669


How to suppress warnings from the test results page?

603


How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one

1602


How the exception handling can be done using quicktest professional (qtp)?

571


How can you identify the browser and its information using the qtp script?

587






Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1525


How can you pass value one action to another action?

555


What are the advantages of a Hybrid framework?

603


Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

1748


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

1647


Which environments does qtp support?

681


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

1862


In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail

1501


What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?

584


what is run-time data?

1699