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 will you test a stapler?

590


what type of run time errors you get while you ar edoing rpg program?

1504


What is the use of Debug Viewer?

1479


how to test Web application using QTP software

1557


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

1516






An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

566


How to find Operating system information using QTP script?

565


what is the difference between built-i function and In-built function?

1627


Describe synchronization point.

571


What is qtpro? What is quick test pro? What is a quick test professional?

582


There is an excel file of 1 to 100 sheets how you will iterate through it?

523


How many types of recording modes are there?

588


How to test the login page in different ways in automation testing and i need code?

1337


How many types of parameters are available in quicktest professional (qtp)?

576


Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.

1510