Automation Testing Training: Introduction To QTP
Automation Testing Training: Introduction To QTP
Introduction To QTP
Session Objectives
Introduction to Automation
Benefits of Automated Testing
Automated Testing Process
Introduction to QTP and its Salient Features
Environment Supported
Introduction to Automation
released
- Low reliability
Benefits of Automated Testing
Why Automation
- Fast
- Reliable
- Repeatable
- Programmable Automated Testing
- Comprehensive
- Reusable
The following XL sheet give you the difference in
Time taken for Manual testing and Automation
Testing.
Sa les Process
Time Taking
Effort (in seconds) for Running
No of Effort (in for Manual (in Seconds)
Script No of Conditions hours) for Running of a ll the for one
Sr.No. Busine ss Process Na me Conditions Automate d Automation conditions itera tion
1 Sales Order Processing S001 32 32 30.4 1500 420
2 Reversal Process S002 7 7 6.65 298 123
3 BOM and Pallets S003 8 8 7.6 512 240
4 Shipment S004 4 4 3.8 395 120
5 POD & X-DOCS S005 10 10 9.5 714 182
6 Free Promotions Goods S006 4 4 3.8 388 124
7 Crate Material S007 3 3 2.85 445 148
8 Generation of Requirement S008 1 1 0.95 422 210
9 Batch Split & Invoice Summary S009 2 2 1.9 630 101
10 Inter company Sales S010 5 5 4.75 555 185
11 Out of Scope 40 0 0
10
Tota l 116 76 72.2 5859 1853
Rebate sProcess
Time Taking
Effort (in seconds) for Running
No. of Effort (in for Manual (in Seconds)
Script No of Condtions hours) for Running of a ll the for one
Sr.No. Busine ss Process Na me Conditions Automate d Automation conditions itera tion
1 Rebate Agreement Processing R001 28 28 26.6 1200 360
2 Out of Scope 2 0 0
Tota l 30 28 26.6 1200 360
Which Test Cases to Automate?
Usability testing
"How easy is the application to use?"
One-time testing
"ASAP" testing
"We need to test NOW!"
Ad hoc/random testing
based on intuition and knowledge of application
Leading Automation Tools available in the
Market For Functional testing
WinRunner
QTP
Rational Robot
Silk Test
QA Run
Automated Testing Process
Creating Script(s)
Executing Script(s)
Analyzing Result(s)
Advantages of QTP over Win runner
1. Preparing to record
2. Recording a session on your application
3. Enhancing your test
4. Debugging your test
5. Running your test
6. Analyzing the test results
7. Reporting defects
Add–In Manager
Default
ActiveX
VisualBasic
Web
Additional
Java
Oracle
PeopleSoft
.Net
Terminal Emulator
Sap, Siebel & Web services
Environments Supported
Multimedia Technologies
Flash
RealAudio/Real Video
MS Media Player
ERP Solutions
mySAP.com
Siebel 2001
Oracle
PeopleSoft
.NET
Win Forms
Web Forms
NET Control
Environments Supported
Web Services
XML
WSDL
Operating Systems
Windows XP/2003
Windows 2000
Windows 98
Windows NT
Windows ME
Environments Supported
Terminal Emulators
3270
5250
VT100
Languages
European
Japanese
Chinese (traditional and simplified)
Korean
Environments not Supported
Custom C/S
• PowerBuilder
• Forte
• Delphi
• Centura
• Stingray
• Smalltalk
ERP/CRM
• Baan
• PeopleSoft Windows
• Siebel 5, 6 GUI Clients
• Oracle GUI Forms
QTP Screen
Important Toolbars
QTP
TEST SCRIPT
Object Repository
TEST 1 Object
Repository
ACTION 1
Object
ACTION 2
Repository
TEST 2
Object
Repository
ACTION 1
ACTION 2
Object
Repository
Shared Object Repository
TEST 1
ACTION 1
ACTION 2
Object
Repository
TEST 2
ACTION 1
ACTION 2
Per Action vs Shared
Object Repository
Per Action Object Repository Shared Object Repository
Keyword View
Expert View
Keyword View
Expert View
What you need to Know in QTP?
Non–reusable
Re-usable
External
Actions
Like,
Verify text in status bar
Verify value in a grid
Verify bitmaps (Tick mark in Release strategy )
Checkpoints
Various Checkpoints are available
Text / Text Area Checkpoint
Bitmap Checkpoint
Database Checkpoint
XML Checkpoint(File/Webpage)
Standard Checkpoint(Page/Table/Image/object)
Accessibility Checkpoint
What you need to Know in QTP?
t
ip
T
t
U
r
rip
Sc
T
A
U
Run script
Sc
Run script A
Client affirms
Continues transaction is
complete
Process To Add Synchronization Points
For e.g. for this case the step inserted in the script will be
Dialog (“Login”) . WaitProperty "enabled", 1, 10000
What you need to Know in QTP?
E.g..
T:\QTP_SCRIPTS_FINAL\S007_015\Res1
C:\DOCUME~1\SU2693\LOCALS~1\Temp\TempResults
Test Run
Analyze Result's
? Thanks