How to export QTP results to an .xls file?
Answers were Sorted based on User's Feedback
Answer / madivalappa patil
I hope this answer will suit your query:
After you execute QTP tests the result will be stored in
report.xml file under current test directory.
Open blank excel-->Data-->Import External Data-->Import Data
you will get select Datasource Dialog box then browse your
test report.xml and click ok.
Is This Answer Correct ? | 12 Yes | 0 No |
Answer / deeps
Hi,
DataTable.Export("file path")
DataTable.ExportSheet("filepath","DTsheet")
DTsheet:index or name of the sheet which u want to export
to excel file.
Ex:
Datatable.Exportsheet("c:\name.xls","name")
Datatable.exportsheet("c:\name.xls",1)
Is This Answer Correct ? | 20 Yes | 11 No |
Answer / barun choudhary
(a) By default it creates an "XML" file and displays the results
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / naveen rana
By default it creates an "XML" file and displays the results
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / jayadev acharam
Datatable.Export("C:\Results\Actuals.xls")
Is This Answer Correct ? | 14 Yes | 16 No |
Answer / lija
Datatable.export and also given path where ever you want
to the result
Datatable.Export("C:\Documents and
Settings\\Desktop\result.xls")
Is This Answer Correct ? | 4 Yes | 6 No |
Answer / jyoshna.e
hai deep can you plz write comments for the script like
what is this name an 1 like these
Is This Answer Correct ? | 3 Yes | 12 No |
Answer / shavali
I THINK IT IS NOT CLEAR . WE HAVE PASS THE RESULT DIRECTLY
INTO THE XL SHEET. SUPPOSE IF LOGIN PAGE IS VALID THAT IS
USERID AND PASSWORD AND LOGINBUTTON IS WORKING THEN THESE
TEST CASES SHOULD BE DISPLAYED IN XLFILE
IF POSSIBLE I WILL TRY THIS CODE
CORRECT ME IF IAM WRONG
Is This Answer Correct ? | 3 Yes | 12 No |
Answer / sagar kumar sutar
Hi Deeps all the above answers are absolutely wrong. Can
any one please answer properly. We are not going to export
our sheet. That is DataTable object every body knows it.
But i want QTP results to export in .xls format. Awaitnig
ur reply soon.
Is This Answer Correct ? | 2 Yes | 12 No |
It is not possible to Export the Results Directely into
Excel File,but it is possible to Export the Results into
Runtime Datatable.
EX:
datatable.AddSheet "venu"
datatable.DeleteSheet "Global"
datatable.DeleteSheet "Action1"
datatable.ImportSheet "C:\Documents and
Settings\Administrator\Desktop\Mallik.xls",1,"venu"
For i=1 to 9
datatable.SetCurrentRow(i)
systemutil.Run "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe"
Dialog("Login").WinEdit("Agent Name:").Set datatable
("A","venu")
Dialog("Login").WinEdit("Password:").Set datatable
("B","venu")
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").WinMenu
("Menu").Select "File;Open Order..."
Window("Flight Reservation").Dialog("Open
Order").WinCheckBox("Order No.").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinEdit
("Edit_2").Set datatable("C","venu")
Window("Flight Reservation").Dialog("Open Order").WinButton
("OK").Click
x = Window("Flight Reservation").WinEdit
("Name:").GetVisibleText()
Datatable("D","venu")=x
Window("Flight Reservation").Close
Next
Results:x values will be Printed into Runtime Datatatable
in D column
Is This Answer Correct ? | 2 Yes | 14 No |
what is difference between calling a function and reusing an action?
What is the scripting language used in QTP?
how to export the result to notepad....for example i want to enter the user name and pass word and clicking on login button ......once you click on login button the corresponding page will open ...in that page you having one list box ...here you can get either success or failure ........friends here i want export the message what ever i got either success or failure .....how to export the result to note pad
what is the criteria for choosing test cases for automation? Ex: if you have some 300 test cases, then how many you choose for automation. what is criteria of selecting?
3 Answers Aricent, Delhi University, TCS,
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?
what is reusable action and how the same can be implemented (process)?
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
describe some problems that u had with automating testing tool?
How to Import data from a ".xls" file to Data table during Runtime.
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me
What is the difference between byref and byval in qtp?
how u will describe testing activities?