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
Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.
What is the syntax for how to call one script from another?
How to create Reusable and Multiple Actions?
Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?
how do i know how to use tools
How would you directly trigger javascript in a test?
For which type of project the iterative model is suitable?
How to import a test case present in ".xls" file to TD under a Test set?
Where we can use the analog mode and where we can use the low – level mode?
How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?
Can we record using all the modes in a single script? Explanation with example is appreciated
What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?