Answer Posted / sathish
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 |
Post New Answer View All Answers
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
Why script error occur in between recording in qtp?
What is qtpro? What is quick test pro?
Have you used xml check point in your project?
Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.
hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
How did you resolve conflicts present in Object Repository?
supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?
How to get popup error message.
Give me some real time point of way where exactly we can conduct audits?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
What is the syntax to call one action in another?
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
your coming from electrical backgroung..but y ur coming to software side?