In this Quality Assurance Training session, you will learn about QTP Overview and Installation. Topic covered in this session are:
• Why Testing Tools?
• Life Cycle of Automation
• QTP – An Introduction
• Add Ins Supported by QTP
• QTP Tool Features
• Object Spy
• Recording Modes
• Reusable Actions
• Dynamic Objects
• Regular Expression
• Synchronization Point
• Check Points
• Exception Handling
For more information, about this quality assurance training, visit this link: https://www.mindsmapped.com/courses/quality-assurance/software-testing-training-with-hands-on-project-on-e-commerce-application/
2. Page 2Classification: Restricted
Agenda
• Why Testing Tools?
• Life Cycle of Automation
• QTP – An Introduction
• Add Ins Supported by QTP
• QTP Tool Features
• Object Spy
• Recording Modes
• Reusable Actions
• Dynamic Objects
• Regular Expression
• Synchronization Point
• Check Points
• Exception Handling
3. Page 3Classification: Restricted
Why Testing Tools?
Manual Testing
• Time consuming
• Low reliability
• Human resources
• Inconsistent
Automated Testing
- Speed
- Repeatability
- Programming
capabilities
- Coverage
- Reliability
- Reusability
- Save Time
No Testing
4. Page 4Classification: Restricted
Which Test Case needs to automate
• Tests that need to be run for every build of the application (sanity
check, regression test)
• Tests that use multiple data values for the same actions (data driven
tests)
• Stress/load testing
• Tests requiring a great deal of precision
More repetitive execution!
Better candidate for automation.
REGRESSION TESTING
5. Page 5Classification: Restricted
QTP – Quick Test Pro
Need for Automation:
Speed : Automation Scripts run very fast when compared to human users
Reliable : Tests perform precisely the same operations each time they are run,
there by eliminating human error.
Repeatable: We can test how the application reacts after repeated execution of
the same operation
Comprehensive : We can build a suite of tests that covers every feature in our
application
Reusable : We can reuse tests on different versions of an application, even if the
user interface changes.
6. Page 6Classification: Restricted
Life Cycle of Automation
Analyze the Application
Select The Tool
Finding & Reporting
Defects
Identify the session
Design/ Record Test
Scripts
Run the Test
Scripts
7. Page 7Classification: Restricted
QTP – An Introduction
• Quick Test Professional is the flagship functional testing tool from HP.
It is an icon based tool, which automates the functional & regression testing
of an application.
QTP is easier to use and implement for both technical & non technical testers
in comparison to other functional testing tools available.
Latest Available versions is UFT 12.5
• Scripting Language is VBScript which is easy to use , understand and program
even complex functionalities with ease..
• Uses “Active Screen” technology to record scripts which aids the tester in
referring to the screens object properties.
• Library files contains VBScript functions and subroutines that can be added
to the test.
• Support Modern Development Environment
8. Page 8Classification: Restrictedwww.mindsmapped.com
Add Ins Supported by QTP
Technology supported by the QTP
By default three Add Ins are there in QTP
ActiveX
VB
Web
Additional Add ins:
Java
Oracle
People soft
.NET
Terminal Emulator (RTE)
SAP
Siebel
Delphi
12. Page 12Classification: Restricted
• Used to Map non Standard Object to Standard Object
• Used to configure Recognition properties for an object class.
• Recognition properties are configured using
• Mandatory Properties
• Assistive properties (are used when mandatory property fails
to recognize the object uniquely)
• Ordinal Identifier (are used when both mandatory and
assistive fails to recognize the object uniquely)
• Location (Represent x- coordinate of the screen or parent
object Nearest to x is 0)
• Index (Works based on active screen – active screen being
0 by default)
• Creation Time (For web browsers, no. of instances
decides the creation time)
Object Identification
13. Page 13Classification: Restricted
Object Repository
• Stores the object for the purpose of playing back
• Uses Logical Name and Description properties to
recognize the object from script and application
respectively
• Description Properties are created through Object
Identification
• Repository can be managed using Per Action mode (.mtr
File) and Shared Repository Mode (.tsr File) by the
script
15. Page 15Classification: Restricted
Three are Modes of Recording
Context Sensitive or Normal Recording – Uses the object class and
properties and method to perform action.
Analog Recording – Understands only the key or mouse movements
Relative to the screen: Desktop.RunAnalog “Track1”
Relative to the window: Window(<<objName>>).RunAnalog
“Track1”
Low Level Recording – Understand the x and y coordinate of the
within the object on which the action is performed.
Object(<<ObjName>>).Click (22,45)
Recording Modes
21. Page 21Classification: Restricted
• How to make an action as Reusable Action?
• Passing Parameters for Reusable Action
• Using Input Parameters
• Using Output Parameters
• SystemUtil Commands
• .Exist Command
• Syntex of Reusable Action
• RunAction “ActionName[ScriptName]”, One/Alliteration,
Parameters(optional)
Reusable Actions
22. Page 22Classification: Restricted
What is Dynamic Object?
When we can say, the object is dynamic?
Ways to Solve those dynamic objects
SetTOProperty
Parent().Object(“Logical”).SetTOProperty “propertyName”,
Value
Regular Expression
Repository Parameter
Smart Identification
What is Smart Identification?
It is a second level of Recognition Mechanism to recognize an
object when it is failed using Description properties
It is not a permanent method to solve a dynamic object – It is an
indication to the user that the object is not managed using
description properties
Dynamic Objects
23. Page 23Classification: Restricted
This can be used where there is a pattern of Change.
Regular Expressions can be used in the following areas:
1) Check Points
2) In parameterization
3) Data Driven test
4) Actions
5) Exception Handling….etc
Regular Expression
25. Page 25Classification: Restricted
Matches exactly four digitsd{4}
Matches any digitdDigit
Matches any non-alphanumeric characterW
Matches any alphanumeric character
including underscore
w
Matches a range of numbers[0-9]
Matches a range of characters[A-Z][a-z]Brackets
Matches one to any number of
occurrences of the preceding character
+Plus
Matches zero to any number of
occurrences of the preceding character
*Asterisk
Matches any single character.Period
DescriptionCharExpression
Some Regular Expression
26. Page 26Classification: Restricted
Synchronization Point
Synchronization point maintains the time coordination between testing
process and your application process.
Types of Synchronization
Sync
Wait
WaitProperty
Exist
27. Page 27Classification: Restricted
Check Points
Check Point is a verification point that compares the current value of the
specified property with the expected value for that property.
• Standard Check Point
• Text/ Text Area Check Point
• Bitmap Check point
• Database Check Point
• XML Check Point
• Accessibility Check Point/ Web Checkpoint
28. Page 28Classification: Restricted
Check Points
Check Point is a
verification point that
compares the current
value of the specified
property with the
expected value for that
property.
• Standard Check
Point
• Text/ Text Area
Check Point
• Bitmap Check point
• Database Check
Point
• XML Check Point
• Accessibility Check
Point/ Web
Checkpoint
29. Page 29Classification: Restricted
Exception Handling
It enables Quick test to detect and handle when unexpected error occurred
during execution time.
Types of Exception Handling:
• Popup Exception Handling
• Object State Exception Handling
• Test Run Exception Handling
• Application Crash