write a function to read the items from Combobox of Flight
Reservation
application and save in excel.

Answer Posted / kishan

allItems=Browser().page().webComboBox().getROProperty("all
items")

arr=split(allItems," ")

'create excel appl object
set xlo=CreateObject("Excel.Application")\
xlo.visible=True

set wbo=xlo.Workbooks.open("D:\QTP\TestData\abcdef.xls")
set wso=xlo.worksheets("Sheet1")

for i=0 to ubound(arr)

j=i+1
wso.cells(j,1)=arr(i)

next

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is command for executing files?

1593


What is synchronization point in QTP?

764


Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?

3072


Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance

1856


Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

1505






What is the short cut keys for the following?

710


please any one can explain the keyword driven framework. with gmail example.

1721


if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp

24343


what is meant by Implicit and explicit requirements?

3732


how to disable the pop ups through QTP using a script

1825


what is the difference btn risks & Therads in the Test plan documentation?

1695


How to explain a banking project in interview as a test engineer???

2692


I have some real time based question.. 1.what are the challenges you have faced in your current project. 2.what are the bugs you found in your current project. 3.what are the strategies you follow to convert manual test cases into automation test cases. 4.how QTP identify two different browsers. 5. When you create a function library and share object repository what are the problems you have faced 6. How to solve the tool tip problem 7.what are the interesting bug you have found in your current project. 8.what is your daily work as a automation test engg. 9. how to create a weekly status report. 10. how many test cases you write,review and execute per day. 11.what are the uses of SQL in automation. 12.How to retrieve the data in html through vb script. 13.If application is very slow how to test the application in qtp.

3677


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1667


How many types of actions are there in quicktest professional (qtp)?

626