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

can anyone please tell me what are all the shortcut keys used for qtp9.2? Thanks in advance..i expect ur valuable reply that help us our team???

1 Answers  


How you can find the absolute value of the number in qtp?

0 Answers  


Hai anyone please "Explain about Framework in QTP?"

6 Answers  


How to write script to display a message box having the "Date" value of the fourth mail(yahoo account). I've tried it with the web table concept but the content doesn't get displayed? Please help me out to resolve this :-)

2 Answers  


If you entered into yahoo mail with your valid user name and password , then you will get " welcome , username " (for example you will see , “welcome, Krishna” ) text on the top of the Inbox page , how can you test the user name is correct or not using QTP?

3 Answers   CTS,






I came across Good question ..... Write a script to only download pdf's if there are 20 links on a page. Kindly reply these type of questions are pretty challenging..

4 Answers   Keane India Ltd,


how to export the result to notepad....for example i want to enter the user name and pass word and clicking on login button ......once you click on login button the corresponding page will open ...in that page you having one list box ...here you can get either success or failure ........friends here i want export the message what ever i got either success or failure .....how to export the result to note pad

1 Answers   Mind Tree,


what is the use of Browser.sync()

2 Answers   NIIT,


what is option explicit? what is the use of it?

9 Answers   Syntel,


How to retrieve the property of an object?

1 Answers  


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

0 Answers  


In Keyword driven frame work you have write 30 test case for one scenario,in which 10 test cases are failed while executing.client asked you to execute only the failed test cases. HOw can you execute only failed test cases

2 Answers   IBM,


Categories