2. Agenda - Basic
• Manual testing v/s Automation.
• Introduction to QTP and its purpose.
• Key Elements of QTP.
• Testing Process
• Recording Test.
• Playback
3. Manual testing v/s Automation
Disadvantages of Manual Testing
• Time consuming
• More resource(s) required
• Human errors
• Repetition of task is not much
• Tiredness
• Simultaneous of tasks is not possible (parallel)
4. Manual testing v/s Automation
Advantages of Automation
• Fast – tools are fast in execution than human users
• Reliable – in complex calculation & tasks.
• Reusable – reuse at any no. of times.
• Repeatable – can repeat some steps for required no. of time.
• Programmable – can use flow control statements to apply logic.
• Comprehensive – can execute test batch without human
interaction.
5. Introduction to QTP and its purpose
• Quick Test Professional, abbreviated as QTP.
• Launched in Nov 2002 by Mercury interactive
• Provides functional and regression test automation
• An object based testing tool.
• Follows keyword driven approach
• Supports windows operating environment only
• Latest version 11.0
6. Key Elements of QTP
Key elements of QTP tool window are:
• Test Pane – Expert View , Keyword View
• Active screen
• Data Table – Global sheet, Action sheet
• Debug Viewer
• Missing resources
• Information
8. Testing Process
1. Analyzing your application
• Application's development environments
• Business processes and functionality do you want to
test
• Consider how to divide these business processes into
smaller units
9. Testing Process
2. Preparing the testing infrastructure
• What resources are required
• Configure QuickTest settings so that QuickTest will
perform the tasks you need
11. Testing Process
4. Enhancing your test
• Inserting checkpoints
• Replacing fixed values with parameters
• Adding logic and conditional or loop statements
12. Testing Process
5. Debugging, running, and analyzing your test
• To ensure that it operates smoothly and without
interruption
• Examine the test results to pinpoint defects in your
application
6. Reporting Defects
13. Recording Test
• Process of recording user operations on AUT
(Application under test)
• Creates steps in keyword view
• Generates script in Expert view
• Adds objects identification in object repositry
Types of recordings
1. Normal
2. Analogue
3. Low level
14. Recording Test - Types
Normal
Default mode of recording which takes full advantage of Quick Test Professional's test object
model. It recognizes objects in application regardless of their location on the screen. It
records the objects in your application and the operations performed on them
Analogue - Automation > Analogue recording
Exact keyboard and mouse operations are recorded in relation to either screen or the application
window. Records and tracks every movement of the mouse for e.g recording a signature
produced by dragginf the mouse
Low level - Automation > Low level recording
Records at the object level and records all run-time objects as either Window or WinObject test
objects. It is used when the exact coordinates of the object are important for your tests. Low
level mode records the x,y coordinates of any clicks
15. Playback
Reads statements one by one and gets object information
from the object repository, based on that information
performs operations in AUT.
16. References
• Build in QTP Tutorial. Help > Quick Test Professional
Tutorial
• http://www.gcreddy.com/