Upload
cornel-vlad-stirb
View
237
Download
0
Embed Size (px)
Citation preview
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 1/16
Geethu Gopinath
1000744763
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 2/16
QTP An automated testing software designed for testing various
software applications and environments-providesfunctional and regression testing automation for
software applications. Part of the Mercury Interactive now acquired by HP
Quality Center tool suite.
Supports keyword and scripting interfaces and features of
graphical user interface. Uses the Visual Basic Scripting Edition (VBScript) scripting
language to specify a test procedure, and to manipulate theobjects and controls of the application under test.
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 3/16
Provides two views and ways to modify a test script-
both contains same data arranged in different formats.Keyword View- actions are generated in tabular formatsimilar to manual test cases.
Expert View- actions are generated in VBScripting.
Active screen- provides screen shots.
Generating Tests Recording
Keyword driven methodology
Descriptive Programming
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 4/16
Keyword view
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 5/16
Expert view
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 6/16
Sample VBScriptSystemutil.Run “C:\Program Files\Mercury
Interactive\QuickTestProfessional\samples\flight\app\flight4a.exe”
Dialog(“Login”).Activate
Dialog(“Login”). WinEdit(“Agent Name:”).Set “abcd”
Dialog(“Login”). WinEdit(“Password:”).SetSecure
“4c639147ce17debfa9a680adf3fb0a1f7b766d39″
Dialog(“Login”). WinButton(“OK”).Click
Window(“Flight Reservation”).Close
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 7/16
Sample Flight Reservation Application
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 8/16
Object Repository Stores the properties and values of the objects.
While playback of scripts ,qtp refers to the objectrepository for identifying the objects.
Two types-1.Local repository-created for every actionautomatically during recording which cannot beshared among tests.
2.Shared repository- creates shared
repository by adding objects which can be sharedamong number of tests if the tests have sameproperties, can be used to save time.
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 9/16
Recording & Running Recording
1. It will generate the script related to the user actions.
2.It will then store the required and related informationin the OR.
Running
1. It will read the instruction and understand what actionis performed on which object.
2.It searches the OR for the required information.
3.If the information is available ,it will try to identify theobject and then perform the action on it.
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 10/16
Modes Of Recording Normal mode- recording based on properties of gui.
Analog mode- recording based on mouse movements,
clicks, keyboard strokes. Low level- combination of above two, mainly for
recording custom objects, it records some operations onnon-supported environments apart from normal
operations.
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 11/16
Object Spy A component in qtp that helps to list the test object
and runtime properties of the gui.
lists the methods and syntax that could beimplemented on that particular object.
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 12/16
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 13/16
Checkpoints Used to verify that an application under test functions
as expected ,i.e, compares the current values forspecified properties with the expected values of thoseproperties.
Two types- built in & user defined
Exception Handling manages exception handling using recovery scenarios
to continue running tests if an unexpected failureoccurs
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 14/16
Drawbacks QTP runs only in Windows environments.
Cannot test with all browser types and versions such
as Safari, Opera. High installation cost.
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 15/16
References http://qtp.blogspot.com
http://en.wikipedia.org/wiki/HP_QuickTest_Professio
nal http://www.slideshare.net/sasiriya/qtp-slides-
presentation-602173
8/13/2019 Quick Test Profesional
http://slidepdf.com/reader/full/quick-test-profesional 16/16
THANK YOU