Académique Documents
Professionnel Documents
Culture Documents
Introduction to Automation
Environment Supported
Introduction to Automation
Automated Testing
No Testing
Manual
Testing
>
>
>
>
Time consuming
Low reliability
Human resources
Inconsistent
- Speed
- Repeatability
- Programming
capabilities
- Coverage
- Reliability
- Reusability
- Save Time
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
QTP An Introduction
QTP is easier to use and implement for both technical & non
technical testers in comparison to other functional testing tools
available.
Salient Features
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
Web Services
XML
WSDL
ERP/CRM
Baan
PeopleSoft Windows
Siebel 5, 6 GUI Clients
Test
toolbar
Test pane
Object
Action
Screen
Important Toolbars
Test pane: containing two tabs to view your testthe Keyword View
and the Expert View
This is a large set of object types or classes that Quick Test uses to
represent the objects in AUTs
Properties
Methods
Objects
You may have called your button as
button1, but QTP recognizes it
with the name Calculate
Object Repository
Object Repositories
Object Repository
Object Repositories
To Record a Test
Steps to follow:
1 Open Quick Test.
2 Open a test:
To create a new test, click
on New
To open an existing test,
click on Open
Playback
Sprint\zXC
abcde
Keyword View
1. Actions bring in modularity
2. Iteration can be controlled.
3. Actions can be reused.
Expert View
Checkpoint
Failed
Checkpoint
Passed
Synchronization Points
Why Synchronize?
Without synchronization point
Inputs
data to
AUT
Attempts
next step
Script
fails
Run script
Accepts
input
Sends data to
database
server
Waits for
server;
cannot
continue
Inputs data
to AUT
Accepts
input
Waits
Waits
Waits
Continues
Synchronizati
on point
Run script
Sends data to
database
server
Server
processes
data
Server
returns
results
Client affirms
transaction is
complete
Select the Property name and its corresponding value which you want to
use for the synchronization point.
Enter the synchronization point timeout (in milliseconds) and Click OK. A
Wait Property step is added to your test.
For e.g for this case the step inserted in the script will be
Dialog(Login).WaitProperty "enabled", 1, 10000
>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<
Test Parameterization
Why Parameterization ?
Usage of data drivers allow us to use the same data for various
input boxes.
Parameterization Continues
Global sheet: This enables you to share information from one action
to another. Should be used for data drivers and Output Values.
Action Sheet: Each action also has its own sheet in the Data Table so
that you can insert data that applies only to that action.
When there are parameters in a current actions sheet, you can set
Quick Test to run one or more iterations on that action before
continuing with the current global iteration of the test.
Output Values
Used when the output for one action is to be used as an input for a
subsequent action.
Status
Summary
Test Results
Iteration Failed
Actions
Actions
Creating Actions
Click on the new
Action Icon
Types of Actions
Reusable Action:
Can be reused in the same test multiple times.
Can be used in another test
Read Only
Parameter data can be from a
local excel (Editable)
original action sheet (Read Only)
Nested Action:
An action within an action.
Helps maintain the modularity of your test
Enables to run one action or another based on the results of a
conditional statement
Copy of an Action
Call to an Action
Calls to actions are read-only in the calling test. They can only be
modified in the test in which they were created.
Enables you to use the same action in several tests and makes it easy
to maintain tests.
Integration of Winrunner,
QTP &
Test Director
TD, Mercury Interactive test management tool, can help you organize
and control the testing process. It provides an intuitive and efficient
method for scheduling and running tests, collecting test results,
analyzing the results, and managing test versions.
QTP can easily be integrated with Win Runner, Test Director and
Load Runner.
If the Winrunner is already installed and being used, then QTP can
be added without the loss of Winrunner scripts.
Thank You