In this quality assurance training session, you will learn QTP/UFT automation testing. Topics covered in this course are:
• Introduction to QTP
• Features of QTP
• Recording modes of QTP
• Object Repository
• Synchronization point
• Step Generator
• Object Spy
• Checkpoints
• Data-...
In this quality assurance training session, you will learn QTP/UFT automation testing. Topics covered in this course are:
• Introduction to QTP
• Features of QTP
• Recording modes of QTP
• Object Repository
• Synchronization point
• Step Generator
• Object Spy
• Checkpoints
• Data-driven testing & Parameterization
• Working with actions
• Reporting in QTP
TO know more, visit this link: https://www.mindsmapped.com/courses/quality-assurance/get-practical-training-on-software-testing-quality-assurance-qa/
Size: 652.85 KB
Language: en
Added: Aug 11, 2018
Slides: 24 pages
Slide Content
Quality Assurance /
Software Testing Training
Quick Test Professional
Page 2Classification: Restricted
Agenda
•Introduction to QTP
•Features of QTP
•Recording modes of QTP
•Object Repository
•Synchronization point
•Step Generator
•Object Spy
•Check points
•Data driven testing & Parameterization
•Working with actions
•Reporting in QTP
Page 3Classification: Restricted
Why Automation Testing
•Avoid human errors
•Executed repeated tests / Regression test cases
•Execute the tests with repetitive steps
•Test the same feature with different data sets
•Tests validating the business process
•Test large number of test cases in short period
•Saves effort and cost of testing under all above situations
Page 4Classification: Restricted
Introduction to QTP
•QTP stands for Quick test professional, is a functional automation testing
tool from HP
•We can automate functionality of the application by recording the actions
on application, developing scripts. Good for automating regression test
cases.
•Scripting language used VB script which is easily understood by the testers
•Supports the large set of development environments like mobile apps, SAP,
Oracle, Java, Web Services and many Windows and Web based
applications
•QTP latest version –11.5
Page 5Classification: Restricted
Features of QTP
•QTP uses VB script
•Active screen
•Expert view and keyword view
•Built in data table
•Test contains Actions
•Results are more readable and easy to understand
•Supports .Net& Web technology, SAP, Seibel
Page 6Classification: Restricted
Add in Manager
Default Add ins
•Active x
•Visual basic
•Web
Other Add-ins
•Siebel
•Java
•SAP
•Oracle
•.Netand many more
Page 7Classification: Restricted
Screen of QTP
Page 8Classification: Restricted
Object Repository
•Interface between QTP script and the
application
•Contains logical name and physical description
•Building the object repository and ensuring that
all objects have clear names that follow any pre
determined naming conventions
•You can create object repositories using Quick
Test functionality to recognize and learn the
objects in your application, or you can manually
define objects
•The object repository should contain all the
objects that are relevant for the tests using this
infrastructure
Page 9Classification: Restricted
QTP Testing Process
•Preparing to Record(Test Settings)
•Recording a session on your application
•Enhancing your test
-Adding logic and conditional statements
-Parameterization
-Insert checkpoints
•Debugging your test
•Running your test
•Analyzing the test results
•Reporting the defects
Page 10Classification: Restricted
Record and Run Settings
Page 11Classification: Restricted
Recording Modes
•Normal: (object based)
Records the actions performed on object
•Analog:
Records exact X,Y co –ordinates of
mouse movement
•Low Level:
Combination of both. Statement
generated on object with x, y coordinates
Page 12Classification: Restricted
Record Mechanism
On Clicking Record Button,
Page 13Classification: Restricted
Playback Mechanism
•On clicking Run button,
Page 14Classification: Restricted
Uses of Active Screen
•To check flow of script without actual application
•To add new object in object repository
•Add check point
•Add step
•Output value
To view the active screen,
choose View > Active screen
Page 15Classification: Restricted
Synchronization Point
•Definition: It is the halt or wait till the object and its properties gets fulfilled
•To define the time mapping between the QTP and application, we use this
concept. If we don’t want to perform any operation until an object in our
application achieves certain status then we can insert synchronization point
to instruct QTP to pause the test until the object getting the certain value.
•Quick Test waits a set time interval for an application to respond to input.
The default wait interval is up to 20 seconds
•If the application responds slowly during the test run, Quick Test’s default
wait time may not be sufficient and the test run may unexpectedly fail.
Page 16Classification: Restricted
When should you Synchronize
When you run tests, your application may not always respond to input with
the same speed
For example it might take a few seconds:
To retrieve information from a database
For a window to pop up
For a progress bar to reach 100%
For a status message to appear
How to Insert Synchronization Point?
Dialog(“Login”).WinButton(“OK”).WaitProperty“enabled”, true,10000
Wait (7)
Page 17Classification: Restricted
Step Generator
•If the user is familiar with VBScript, the user can add and update
statements and enhance the tests and components with programming.
•After the test or an action is recorded, its power and flexibility can be
increased by adding recordable and non –recordable VBScript statements
as required for tasks like check points, data tables.
•The Step Generator enables you to add steps quickly and easily by selecting
from a range of context –sensitive options and entering the required
values
•The steps entered here can use:
Test object method and properties
Utility object method and properties
Calls to library functions, VB functions, internal script functions
Page 18Classification: Restricted
Object Spy
Page 19Classification: Restricted
Check Points
Checkpoints allow you to compare the current behavior of the application
being tested to its behavior in an earlier version
Its comparison between expected result and Actual result
Types of Check Points:
Standard Checkpoint
Text / Text Area Checkpoint
Bitmap Checkpoint
Database Checkpoint
XML Checkpoint
Page 20Classification: Restricted
Data Driven Testing
•A test that plays back the same user actions but with varying input values
•When you test your application, you may want to check how it performs
the same operations with multiple sets of data
•Ex. Suppose you want to check how your Website responds to ten separate
set of data
Process :
Creating a baseline script
Parameterize the fields
Insert new input in Data Table
Running the test
Analyzing test results
Page 21Classification: Restricted
Parameterization
Three types of Parameterization
Data table parameterization
-Global sheet
-action sheet
Environmental parameterization
-User defined
-Built in
Random parameterization
Page 22Classification: Restricted
Working with Actions
•Actions divide your test into logical sections. When you create a new test, it
contains one action. By dividing your test into multiple actions, you can
design more modular and efficient tests.
•We will focus on:
Call to new action..
Reusable and non reusable action
Call to existing action
Call to copy of action
Usage of Actions:
We can design more modular and efficient tests
Actions enable you to parameterize specific components of test
Two or more tests can call the same action
Complex tests many have many actions and may share action with
other tests
Page 23Classification: Restricted
Reporting
•The process of reporting is to customize the test results, and add the
appropriate comments and reports to the test results to increase the
readability of it. Reporting can be done in various formats
•QTP format : this is the format in which the results are displayed in the test
window, opens with QTP
•XML format: the results are also stored n XML file, in which all the objects
are stored in a hierarchy in .xml format. This is useful in transfer of the
results information across platforms, since it is based on simple Unicode
format.