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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you brief the hurdles you faced during Automation testing?

577


Is virtual object supported in low level recording mode?

623


what is object and child object.. explain ..if possible give some example for better understanding ..

1531


How can you write the scripts that operate on different objects depending on run-time information?

2120


In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?

1492






When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.

1607


Where is the Bitmap checkpoint information stored?

1764


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

1627


Who uses qtp tool?

575


How to find the path of folder in which the test is saved in qtp?

534


Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.

1712


How to integrate the qualitycenter with qtp

1773


I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”

586


How to suppress warnings from the test results page?

603


How to replay a script in qtp?

615