how to retrive that the number of spaces are in a string ????

Answers were Sorted based on User's Feedback



how to retrive that the number of spaces are in a string ????..

Answer / kamakshya prasad

Dim str
str="QTP, an automation Tool uses for software testing"
s=split(str," ")
msgbox ubound(s)

Is This Answer Correct ?    6 Yes 0 No

how to retrive that the number of spaces are in a string ????..

Answer / uday

You just split with space, and the ubound of that array +1
is the number of spaces.

Is This Answer Correct ?    5 Yes 4 No

Post New Answer

More QTP Interview Questions

write a test script in QTP to test the text that written in an image(i.e jpg)of a web page???

0 Answers  


what could go wrong with test automation?

0 Answers  


what is L-trim function will do?

2 Answers  


Differentiate the type of test cases which can be automated and which cannot be automated?

0 Answers  


can any one tell me the script to click on a button in the wintoolbar.

1 Answers  






Suppose Object name was changed in the application in the second build.I have just modified the name in the Object repository as changes in the Application. Is it possible to accure changes in the script accordingly? If so Suppose I am calling the script through function, Will the changes affect in the script(which is in the function)automatically? If not affected, tell me the solution,How to handle this. How should I change the object property name while using functions

4 Answers   Livetek,


Explain Checking XML....

1 Answers   Crea,


For example one window is there the window contain some of Check boxes but my question is how many check boxes are there particular window? Please solve the problem gi_raju@rediffmail.com ippaliraju@yahoo.co.in

3 Answers  


What is the Diff between Image check-point and Bit map Check point?

3 Answers   Crea,


in QTP, we have options like (record and play,recording modes(normal,analog,low level),object identification,smart identification,object repository,synchronizing test,transactions,checkpoints(std,bitmap,text,text area,DB,XML,accessibility),regular expression,actions,data driving,parameter,parameterization,data tables,recovery scenario(pop up,object state,test run error,application crash). real time users of QTP, pls say and when and at what point u have used all these options ,in ur concerned project.pls give me explanation in accordance with ur real time project handled. real users pls send some time in the aboue case. if u can send the the reply through allinterview or at ref_it_ref@yahoo.co.in

1 Answers  


wt is frame work wt r d different types of frame works used in ur company

1 Answers   Infotech,


What is object spy in quicktest professional?

0 Answers  


Categories