Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
9Activity
0 of .
Results for:
No results containing your search query
P. 1
QTP Scripts for Flight Reservation

QTP Scripts for Flight Reservation

Ratings: (0)|Views: 2,789 |Likes:
Published by Ramu Palanki
QTP,VBScript,qtp script,qtp scripts,Automation,automation framework,automation estimation technique,automation estimation technique, QTP Interview questions,QTP real time scripts,sample vbscripts,
QTP Sample Certification questions, qtp exam questions, hp qtp certification questions, QTP Certification HPO-M16 - Skill Review Test,QTP Guide, QTP Testing, Quick Test, QuickTest Professional, quicktest Pro,
quicktest professional,qtp tutorial,qtp 10 tutorial,automation frameworks, qtp framework, test automation by qtp

QTP,VBScript,qtp script,qtp scripts,Automation,automation framework,automation estimation technique,automation estimation technique, QTP Interview questions,QTP real time scripts,sample vbscripts,
QTP Sample Certification questions, qtp exam questions, hp qtp certification questions, QTP Certification HPO-M16 - Skill Review Test,QTP Guide, QTP Testing, Quick Test, QuickTest Professional, quicktest Pro,
quicktest professional,qtp tutorial,qtp 10 tutorial,automation frameworks, qtp framework, test automation by qtp

More info:

Published by: Ramu Palanki on Jan 04, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

12/17/2012

pdf

text

original

 
1
Fore more QTP Realtime scripts, visit www.ramupalanki.com
QTP Scripts
Visitwww.ramupalanki.comTest Requirements
1)
Verify Login Boundary 
(Check all the boundary conditions of the Loginwindow. Checks to see if the correct message appears in the error window(Flight Reservation Message)
2)
Verify Cancel Operation 
(in Login Dialog box, if user selects cancel button,before enter any data after enter data dialog box should be disappeared.)
www.ramupalanki.com
 
2
Fore more QTP Realtime scripts, visit www.ramupalanki.com
3)Verify Addition, Subtraction, Multiplication and Division Operations inCalculator Application.
4)
Verify state of Update Order Button, before open an Order and afteropen an Order 
(in Flight Reservation before opening an order Update Orderbutton should be disabled after opening an order enabled.)
5)
Price Consistency, In Flight Reservation
(In Flight Reservation, First classprice=3*Economy class price and Business class price=2*Economy classprice)
6)
Verify Total, In Flight Reservation 
(In Flight Reservation, Total = Tickets *Price)
7)
Verify Flight From & Flight To Combo Boxes 
(In Flight reservation, selectan item from Fly From: combo box and verify weather that item available ornot in Fly To: combo box, like this select all items one by one in Fly From andverify weather selected items available or not in Fly To.)
8)
Verify Order No Entry in Flight Reservation. 
(In Open Order dialog box,Order No object accepts numeric values only.)
9)
Get Test Data from a Flat file and use in Data Driven Testing (throughScripting) 
10)
Get Test Data From a Database and use in Data Driven Testing(through Scripting) 11)Count, how many links available in Mercury Tours Home Page?
12)
Count how many Buttons and Edit boxes available in FlightReservation window? 13)Verify search options in Open Order Dialog box(
After selecting open order, 3 search options should be enabled and not checked,After selecting Order No option, other options should be disabled,After selecting Customer Name, Flight date option enabled and Order No disabledAfter selecting Flight date option, Customer Name enabled and Order No disabled
)
www.ramupalanki.com
 
3
Fore more QTP Realtime scripts, visit www.ramupalanki.com
14)In Login Dialog box, Verify Help message 
(The message is ‘The password is'MERCURY')
15)Count all opened Browsers on desktop and close all? 16)Create an Excel file, enter some data and save the file through VBscripting? 
Solutions:
1)
Verify Login Boundary 
(Check all the boundary conditions of the Logindialog box. Checks to see if the correct message appears in the error window(Flight Reservation Message)1)ApplicationDir = Environment("ProductDir")2)ApplicationPath = "\samples\flight\app\flight4a.exe"3)If Window("Flight Reservation").Exist(2) Then4)Window("Flight Reservation").Close5)SystemUtil.Run ApplicationDir & ApplicationPath6)Elseif Not Dialog("Login").Exist(1) Then7)SystemUtil.Run ApplicationDir & ApplicationPath8)End I9)Dialog("Login").WinEdit("Agent Name:").Set Datatable.Value("AgentName",dtGlobalSheet)10)Dialog("Login").WinEdit("Password:").Set Datatable.Value("Password",dtGlobalSheet)11)Dialog("Login").WinButton("OK").Click12)If Dialog("Login").Dialog("Flight Reservations").Exist(1) andDatatable.Value ("Status",dtGlobalSheet)="Fail" Then13)Dialog("Login").Dialog("Flight Reservations").Static("Agent name mustbe at").Check CheckPoint("Agent name must be at least 4 characterslong.")14)Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click15)Elseif Window("Flight Reservation").Exist(10) and Datatable.Value("Status",dtGlobalSheet)="Pass" Then16)Reporter.ReportEvent PASS,"Login: ","Succeeded"17)Else18)Reporter.ReportEvent Fail,"Login: ","Combination #" & Datatable.GetCurrentRow & " was not according to Excel file"19)End If 
www.ramupalanki.com

Activity (9)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Sandeep Thandra liked this
Kavitha Adi liked this
Tester VietNam liked this
Aishwarya Rao liked this
gopideals liked this
umashankar66 liked this
Hussain Ahmed liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->