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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)

1855


when u script reveiwing in which area u more concentrates?

1418


In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

1510


Define object spy ?

563


When to use descriptive programming?

594






what is the hierarchy to use properties in descriptive programming

1504


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

576


What is an optional step in qtp ?

637


What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?

640


How you can decide which type of object repository you have to use?

707


write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading

1494


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?

1583


What is accessibility check point?

660


How do you create regression test packs?

612


what is profile tool?

1612