We have a text file which contains 1 to 100 numeric values sequentially like 1
2
.
.
100
Now we have to count them and transfer to XML file by writing a code in qtp.



We have a text file which contains 1 to 100 numeric values sequentially like 1 2 ..

Answer / pushkar1206

a="1 2 3 4 5 6 7 8 9 10"
b=split(a," ")
msgbox ubound(b)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Why we are selecting QTP for testing ?

20 Answers   HP,


how many wayes we do the parameterization?

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,


We have a dynamic webtable where rows keep on adding.I have to click on particular row where the status changes to Update or Save.How do you click on Status(either it can be Update or save)

2 Answers   IBM, Infosys,


Hi,iam new to automation and i have 1 year experience in manual testing.I have a little bit idea about QTP9.0 .But i have no idea about script writing using VB.Please help to learn script writing.

1 Answers  






An object is created, i dont know the methods available for that object, i want to find methods available for that object and use the required method. How i can do this???

4 Answers   HCL,


what is the data driven testing?

0 Answers  


Need one Urgent help please,for ex: first time i created Local reposory and convert that local to shared Rep and save in some where(by using Export local objetcs), unfortunately that saved repository is missed, now i want same repository,but iam not able to export the same repository second time?? i need that Repository only how to get???

2 Answers   TCS,


does test plan is in test strategy or test strategy is in test plan

2 Answers   Tanla Solutions,


What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

0 Answers  


How do u write script in qtp? where do u write?

2 Answers  


How to add a runtime parameter to a data sheet?

6 Answers  


Categories