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
How to find Operating system information using QTP script?
How do you create new test sets in td?
How can I import environment from a file on disk?
How to recognise the webelement and verifying that webelement is enabled?
describe some problems that u had with automating testing tool?
How to handle dynamic objects in quicktest professional?
Please Don't mind .i want in detail the real time process i.e in each document what it contains.
iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?
one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.
Explain the difference between data driven testing and parameterization ?
How you can replace string in qtp?
What Folder Structure following in Keyword Driven Frame work?
suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?
How you can delete excel file in qtp?
what is run-time data?