1. How to capture data from images in QTP and produce them
in Excel sheet

Answer Posted / pravati

x=Browser("").page().image().Getroproperty("alt")
set excel=createobject("excel.application")
excel.application.visible=true
excel.workbooks.add
excel.activeworkbook.saveas ("path.xlsx")
excel.workbooks.open("path".xlsx)
set mysheet=excel.activeworkbook.worksheets("shtid")
mysheet.cells(1,1).value=x
excel.activeworkbook.save
excel.activeworkbook.close
excel.application.Quit
set mysheet=nothing
set excel=nothing

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we record using all the modes in a single script? Explanation with example is appreciated

1582


To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1640


How to define array in qtp?

746


what r the main attributes of test automation?

1680


Explain building blocks of the bpt framework ?

748






What is the extension of the qtp local repository?

732


Explain the features of quick test pro(qtp)?

750


How we can import data from database?

862


How will you test a stapler?

794


What is the difference between keyword view and expert view?

810


how to download mercury qtp9.2 ny internet ?

3172


In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

1651


How to check which add-ins are associated with a test in qtp?

797


Hi, I am supposed to automate mainframe application through qtp. I do not know how to start abt it. Can you plz help me in first initializing the process or do you anybody have a guide book or a link which guides me through the process of automating the mainframe applications and things involved in it.

6830


Discuss quicktest professional environment?

770