Professional Documents
Culture Documents
Professional Session-1
What is Automation Testing ?
Benefits
Quick Test testing process consists of 7 main phases
Preparing to record
Test Environment
Test Conditions
Recording a session on the application
Enhancing the test
Debugging the test
Run Test
Analyzing the test results
Reporting defects
Documents used to test the application
Test
A collection of steps organized into one or more actions, which are
used to verify that the application performs as expected.
Business Components
A collection of steps representing a single task in the application.
Business components are combined into specific scenarios to build
business process tests in Mercury Quality Center with Business
Process Testing.
Creating Tests and Enhancing
Quality Center
Layer1
Physical Description
Layer2
Application
Layer3
QTP High-level features
Object Spy
Object Repository
Object Identification
Key Word View
Expert View
Active Screen Technology
Data Tables (Global, Local)
Recovery
Various Add ins
Object Spy
• Displays
• Object hierarchy tree
• Run-time object properties &
methods
Test object properties
&methods
Object Repository
Locate
object in
Find data-dependant
repository
property
Parameterize
property’s
Value
Object Repository
Object Repository acts as a translator between QTP script and the Operating
System.
When QTP runs a test, it uses the object repository to locate objects. QTP reads an
object’s description in the repository and then looks for an object with the same
properties in the application under test.
How QTP Stores Objects
QTP
TEST SCRIPT
Object Repository
Separate action repository for each action. Can use the same shared object repository
file for multiple tests.
If an object description changes, you need
to modify the object in every action If an object description changes, you only
repository using that object. have to modify in the shared Object
Repository – all tests will playback
properly.
No need for any Object Repository
administrator.
Requires Shared object repository creation
and maintenance.
Preferred method if application won’t
change during renovation
Default Object Repository.
Crucial if application may change during
renovation
Preferable for novice QTP users. Most commonly used across Automation
projects.
Object Repository Per Action
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
Object Identification
How are the objects recognized?
Quick Test now evaluates application object properties upon test playback, and can
make decisions based on logical property matches, even if the recorded object
properties are not present.
Keyword View
The Keyword View enables to create and view the steps of your test or component in a
keyword-driven, modular, table format . The
Documentation column of the Keyword View also displays a description of each step in
easy-to-understand sentences.
Expert View
In the Expert View, QTP displays each operation performed on the
application in the form of a script, comprised of VBScript statements.
Active Screen, Data Table, Debug Viewer pane
Active Screen
Provides a snapshot of your application as it appeared when
you performed a certain step during the recording session.
Data Table
Assists in parameterizing the test or component. For a test, the Data Table contains
the Global tab and a tab for each action. For a
component, the Data Table contains single tab.
1. Parameterizing Tests
2. Creating Output Values
3. Creating Checkpoints
4. Regular Expressions
5. Dividing Tests into Multiple Actions
6. Inserting Transactions.
7. Synchronization point.
8. Calling External Libraries.
Parameterizing
t
rip
t
T
rip
T
AU
Sc
AU
Sc
Run script Run script
Client affirms
Continues transaction is
complete
Calling External Libraries
Analog Recording
Record the exact mouse and keyboard operations you perform in relation to either the
screen or the application window.
Low-Level Recording
Record on any object in your application, whether or not Quick Test recognizes the
specific object or the specific operation.
Record and Playback
Advantages
Useful in determining how the QTP interacts with the application
under test.
Provides initial ideas on how to develop test scripts.
Useful while ‘Playing around’ with the tool
Disadvantages
Test scripts contain hard-coded values.
This is not a viable cost-effective test automation approach for long
term.
Results
After running a test, we can view a report of major events that
occurred during the test run.
If the test contains Data Table parameters, and the test settings it
shows on Test Results window.