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
What is meant by Output Value in UFT?
what is run-time data?
How to use debug tools?
how interviews will be on QTP?
What is the difference between keyword view and expert view?
What is the difference between rational rose and QTP?
What is checkpoint in qtp?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }
what is ODC and GDC?
What does it mean when a check point is in red color? What do you do?
They asked by using qtp recording writing scripting
How does quicktest professional identifies the object in the application?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
Explain the check points in quicktest professional (qtp)?