ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
How to export QTP results to an .xls file?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to export QTP results to an .xls file?
Answer
# 1
Datatable.Export("C:\Results\Actuals.xls")
 
Is This Answer Correct ?    5 Yes 7 No
Jayadev Acharam
 
  Re: How to export QTP results to an .xls file?
Answer
# 2
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 ?    5 Yes 6 No
Deeps
 
 
 
  Re: How to export QTP results to an .xls file?
Answer
# 3
hai deep can you plz write comments for the script like
what is this name an 1 like these
 
Is This Answer Correct ?    2 Yes 1 No
Jyoshna.e
 
  Re: How to export QTP results to an .xls file?
Answer
# 4
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 ?    1 Yes 2 No
Shavali
[Ware Net]
 
  Re: How to export QTP results to an .xls file?
Answer
# 5
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 ?    0 Yes 2 No
Sagar Kumar Sutar
 
  Re: How to export QTP results to an .xls file?
Answer
# 6
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 ?    1 Yes 3 No
Sathish
 
  Re: How to export QTP results to an .xls file?
Answer
# 7
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 ?    0 Yes 0 No
Madivalappa Patil
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
In a webtable, lets say there are 10 records and 1 column. let say "image" is available for 1st,2nd and 3rd records and 4th onwards image is not available. How to recognise for that cell image is available or not?  2
What are the difference between QTP and Winrunner  5
how to get column count in datatable  2
hello everyone, can anybody please tell me what are the different recording modes of QTP, and where these recording modes are present in QTP 9.2. Thanks in advance, Gaytri  7
1)What is the Difference Between WaitTo & Sync? Wipro2
Where virtual objects stores results?  4
hai, i am doing QTP by own. So, i am confident in checkpts,synchronization, data driven test, recovery scenarioe manager etc. but actually i don't know how all these we wil implement while we r writting code manually. when we r doing practice, while recording code is automatically generated but in real time i heard that we have to write the script.But i don't know how it is? How to write descriptive prog.? plz. tel me what r the basic things we have to know? explain how to write descriptive prog.? explain me with an example pls....... Vertex2
i want to handle all the unwanted pop up through QTP i done that with recovery scenario but it need some title of pop up but i want that it should handle all the pop up even i don't give the title of that pop up in recovery scenario is there any general way to handle all the pop up please help  3
Suppose u write test case in Excel sheet . how u open that test case in Test Director? Ordain-Solutions3
Is there any site to download QTP....otherwise tell me the way how to get the QTP sofware??????????????????? Thnx in advance Cegonsoft5
What exactly is the difference among all the three recording modes. TCS2
Suppose i have a script which is having 100 lines.I want to execute that script starting from line no 75.means first qtp should read the script from line no 75 how can u do it. Lehman-Brothers5
What does SPLIT and JOIN commands do in Vbscript? Ordain-Solutions4
with out object repository i need to launch IE and then navigate to a login page and then operate the objects within the page. How will be the script? Ordain-Solutions2
what are SetToProperty, SetROProperty,GetToproperty scripting?  2
hi how could i get installation guide for QTP 9.0 on XP help me for this !!!!!  1
How to add check point?  2
in flight reservation ex once u login, u go into next window where we hav an option of new, open and help etc.. how to fetch those options and to go to respectiv tab accordingly using qtp.. plz let me knw answer for tis as early as possible. Thanks in advance... asha  1
What is the Difference between Environment variable and Globle variable,.. anybody can give me answer..Thanks in advance... IBM2
what are build and version plz explain why nomber changes in build and version?  3
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com