How to capture data from images in QTP and produce them in
Excel sheet ? please ans...

Answer Posted / pravati

text=Browser().page().image().getroproperty("alt")
msgbox text
set excel=createobject("excel.application")
excel.application.visible=true
excel.workbooks.open("path")
set mysheet=excel.Activeworkbook.worksheets("sheet2")
mysheet.cells(1,1)=text
excel.Quit
set excel=nothing
set mysheet=nothing

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is post recovery scenario?

1898


What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

799


What is the difference between rational rose and QTP?

2011


Explain how qtp identifies objects?

791


What are the ways you can synchronize?

791


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

785


How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If

2801


When Recovery scenario actually starts while testing the application?

1788


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

1905


Generic function to search for the unique link in webtable and click on it

2754


what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent

1557


Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.

1890


how to idetfy which test cases are automated?who will deside that plz tell me

1780


you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva

1713


Difference between action & Reusable action?

854