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

What is the quicktest professional (qtp) testing process?

568


How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?

568


How software tester can use constants and variables in scripts?

1688


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

525


What is business process testing(bpt) in qtp?

695






Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

1535


What is reusable action?

605


What is an expert view and keyword view?

573


What is the differences between image check point and bit map check point?

581


What is the extension of qtp local repository?

576


unique properties of button,edit box, radio button,check box?

3829


Write a script to verify font style and color of a windows object using descriptive programming

837


How do you open adobe acrobat file in QTP and do some testing on that file ?

623


How to give a call to another action from one action?

629


Can we record an application running on a remote machine using qtp?

723