1.how can we report the QTP test result in a different
excel sheet
2.
Answer Posted / prasad
'Parameterization ... Data Table (Global Sheet) for Flight
Reservation
Invokeapplication "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe"
'or
'SystemUtil.Run "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe"
Dialog("Login").WinEdit("Agent Name:").Set
DataTable("Agent_Name", dtGlobalSheet)
Dialog("Login").WinEdit("Password:").Set
DataTable("Pword",dtGlobalSheet)
Dialog("Login").WinButton("OK").Click
If Window("Flight Reservation").Exist then
Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"
DataTable.Value("Act_Res")="Pass"
Reporter.ReportEvent 0,"Login Details","Valid Values"
else
Dialog("Login").Activate
Dialog("Login").WinButton("Cancel").Click
DataTable.Value("Act_Res")="Fail"
Reporter.ReportEvent 1,"Login Details","Invalid Values"
End If
er=DataTable("Exp_Res",dtGlobalSheet)
ar=DataTable("Act_Res",dtGlobalSheet)
If Strcomp(er,ar)=0 Then
DataTable.Value("Remarks")="OK"
Else
DataTable.Value("Remarks")="Defect"
End If
DataTable.Export("D:\QTP9\LoginResults.xls")
Note: Create a data table in QTP and enter the following details
Agent_Name Pword Act_Res Exp_Res Remarks
puneeth mercury Pass
pooja mercury Pass
soumya mareiou Fail
mahesh miaoreu Fail
shivakumar mercury Pass
| Is This Answer Correct ? | 2 Yes | 11 No |
Post New Answer View All Answers
how to write xml output check point bu useing descriptive programing .means without useing output check point
if numbers are always changing write a script for that
What is 'sleep' in sync point?
How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric
How to use the object spy in quicktest professional 8.0 version?
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
Where we use data driver in qtp?
what frame work you are following?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation
I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?