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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?

656


When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti

2491


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

1675


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1389


How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?

700






How to modify the text checkpoint?

616


What contains Data Driven Framework document in qtp?

1469


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

548


How many types of recording modes in qtp? Which will be used when?

550


Shall we add Local Repository to shared object repository,if yes,how we add

5694


What is an optional step in qtp ?

636


Explain the new feature of UFT regarding the export of test results?

578


Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.

3421


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

637


How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

1734