QuickTest Professional
Product name:
|
QuickTest
Professional
|
Product version:
|
10.00
|
Product ID:
|
QTPRPID10.00/01
|
Product build:
|
513
|
Quality Center connectivity:
|
10.0.0.1740
|
Released on
|
January 2009
|
By B.AKHIL REDDY
Quick Test Pro Introduction
Manual Vs. Automation
Ø
Testing Computer Software
manually is called Manual Testing
Ø
Testing Computer Software using any Tools (tool also software) is
called Automated Testing.
Ø
Manual testing is Mandatory but Test Automation is Optional.
Ø
We can apply Manual Testing for all types of the testing but for
some types of testing only tools available.
Ø
Major Test automation types are Functional and Regression Testing,
Performance Testing, Test harness, Coverage Analysis, Test Management etc.
Ø
Test Automation has limitations where as Manual Testing doesn’t
have limitations.
Drawbacks
of Manual Testing
- More number of people are required
- Time consuming
- Human mistakes (no accuracy)
- Tiredness
- Simultaneous actions are not possible
- Cannot repeat the same task again and again in a perfect manner.
Drawbacks
of Automated Testing
- Tools are expensive
- Cannot automate all the areas of an application
- Lack of experts
Test
Automation
Test automation Basically 2 types
1) Command based test automation (using any
programming Language/Scripting Language)
Ex: Shell script/Perl script/Ruby script
2) Tool based/ GUI based test automation
(using any tool)
Ex: WinRunner/QTP/Silk Test/Rational
Robot/LoadRunner
Again in Tool based test automation various
types are there, ex: Functional test
automation, performance test automation, dynamic analysis automation, test
coverage automation etc.
1) Benefits of Automated Testing (Functional
& Regression Testing)
a) Fast- Runs tests significantly
faster than human users.
b)
Reliable- Tests
perform exactly the same operations each time they are run, thereby eliminating
human error.
c)
Repeatable- We
can test how the Software reacts after repeated execution of the same
operations.
d)
Programmable- We
can program complicated tests that bring out hidden information.
e)
Comprehensive- We
can build a suite of tests that covers every feature in our Software.
f)
Reusable- We
can reuse tests on different versions of Software, even if the user interface
changes.
Note:
Benefits of the Automated Testing depends on type of the Test Automation. Ex
Performance Test automation benefits may vary from Functional Test automation.
Tools
available for Functional & Regression Testing
3 Types
of Testing Tools available in the industry
1)
Vendor Tools (ex: HP-QTP, Borland-Silk Test, IBM-Rational Robot etc)
2) Open
source Tools
3)
In-house Tools
For
functional & Regression testing all types of tools available but vendor
tools very useful and famous. Our QTP also comes under Vendor tools. Other
vendor tools ex: Silk Test, Rational Robot etc.
QTP
Introduction
Ø
Functional and Regression Testing Tool.
Ø
QTP 10.00 is the current version, released in January 2009
Ø
Developed by HP (Hewlett Packard)
Ø
QTP Tool derived from Astra Quick Test. The previous vendor of QTP
is Mercury Interactive.
Ø
Creates our automation programs in VB Script
Ø
QTP tool uses other tools support, they are spread sheet (MS
Excel), SQL and Script debugger etc.
Ø
Separate Licensees are available for Windows and UNIX operating
environments.
Ø
QTP supports various technologies (ex: Java, .NET, SAP, Maine frames etc.) based
software with respect to license.
Ø
QuickTest Professional is Unicode
compliant according to the requirements of the Unicode standard, enabling us to
test applications in many international languages.
Ø
QTP is next-generation automated testing solution deploys the
concept of keyword-driven testing to
enhance test creation and maintenance.
Ø
Many QuickTest operations are performed using the mouse.
Additionally, we can perform many QuickTest operations using shortcut keys.
Starting QuickTest
To start QuickTest,
Select Programs > QuickTest Professional > QuickTest Professional in the Start menu
Or
Double-click the QuickTest Professional shortcut on your desktop.
The first time we start
QuickTest, the Add-in Manager dialog box opens.
Add-in
manager dialog box
Add-in Manager:
Add-in
manager is a feature provided by QTP which is used for showing all the list of
add-ins while opening the QTP, so that the user can select the desired add-in
and then enter in to the QTP, before the user access the QTP the add-in manager
makes the QTP compatible with all the selected environments.
By
default QTP is always compatible with standard window’s environment.
Whenever we purchase QTP we get three add-ins by
default
1). Activex
2).
Visual Basic
3).
Web.
A part from the above add-ins one needs to purchase
the add-ins by paying extra cost.
After selecting desired Add-ins in the Add-in
Manager Dialog box click OK
The
QuickTest Professional window opens displaying the Start Page and a blank
test. To access a blank test, click the Test tab.
QTP Window
QuickTest at a Glance:
QTP Window can be divided into Twelve parts
1).
Test Pane
2).
Active screen
3). Data
Table
4).
Debug Viewer Pane
5).
Information pane
6).
Missing resources pane
7) Process Guidance Panes
8) Available
Keywords Pane
9) Resources Pane
10) Test Flow Pane
11) To Do Pane
12) Tool- Options
1) Test Pane:
Test
pane is an area provided by QTP, which is used for developing, viewing, and modifying
the test script. It represents the test scripts in two views
a). Expert view
b). Keyword view
a). Expert view: It
represents the Test script in VB script format
Expert View in QTP Window
(b). Keyword view:
Keyword view represents the script using a graphical user interface (GUI) which
is divided in to four parts.
·
Item
·
Operation
·
Value
·
Documentation
Keyword View in QTP Window
2) Active Screen:
Active
screen is an area provided by QTP, which holds the snapshots of each and every
script statements and used for the following.
·
For understanding the
script easily
·
For enhancing the
script easily.
To view the Active Screen, click the Active Screen button
Or
Select View >
Active Screen
Active Screen in QTP Window
3) Data-Table:
The
date table is originally called as formula1 sheet developed by third party and
integrated with QTP.
Features:
§ It
is used for holding the test data
§ It
isolates the test script from the data source.
§ It
provides the facility to import the test data from different data sources like
excel files, data base and flat files (a file with out having format)
§ It
allows the user to interact with the data directly
Note: QTP maintains two copies of data tables
i.
Design time data
table
ii.
Run time data table
To view the Data Table, click the
Data Table toolbar button
Or
Select View > Data Table.
Integrated Data Table in QTP Window
4) Debug Viewer Pane:
Definition
of Debugging: Debugging is a process of executing the script or a program in a
user desired passion with some temporary breaks in order to identify the
errors.
Debug
viewer pane is an area provided by QTP which is used for viewing, modifying or
setting the current values of variables or expressions during the execution
break with the help of three Tabs by name Watch, Variables and Command
Watch
The Watch tab displays the current value and type of any variable or
VBScript expression that we added to the Watch tab. we can also set or modify
the values of the variables and properties that are displayed.
Variables
The Variables tab displays the current value and type of all variables that
were recognized up to the last step performed during the run session that we
are debugging. we can also set or modify the values of the variables that are
displayed.
Command
The Command tab enables us to run lines of script to set or modify the
current value of a variable or VBScript object in our test or function library.
5) Information pane:
The Information pane provides a list of syntax
errors in our test or function library scripts.
To show or hide the Information pane, choose View > Information
Information Pane in QTP Window
6) Missing resources pane
The Missing Resources pane provides a list of the
resources that are specified in our test but cannot be found, such as missing
calls to actions, unmapped shared object repositories, and parameters that are
connected to shared object repositories.
To show or hide the Missing Resources pane, choose View > Missing
Resources
Missing Resources Pane in QTP Window
7) Process Guidance Panes: Displays two panes that provide procedures and descriptions on how to best
perform specific processes, such as creating a test in QuickTest. The Process
Guidance Activities pane lists the activities that you can perform, such as
adding steps to a test. The Process Guidance Description pane describes the
tasks that you need to perform for a selected activity. Your organization may
also provide you with process guidance that is accessible from these panes.
We can display the Process Guidance panes by choosing View > Process
Guidance, or by clicking the Process Guidance panes button.
Process Guidance Panes in QTP Window
8) Available Keywords Pane: The Available Keywords pane enables us to drag and drop objects or calls to functions into your test. When you drag and drop an object into your test, QuickTest inserts a step with the default operation for that object. When you drag and drop a function into your test, QuickTest inserts a call to that function.
To view the Available Keywords pane, click the Available Keywords Pane button
Or
Select View > Available Keywords.
Available Keywords Pane in QTP Window
9) Resources Pane: Tests and actions are associated with resources such as function libraries, recovery scenarios, and object repositories. QuickTest displays all the resources associated with a test in the Resources pane. The Resources pane enables you to add, remove, and manage all of the resources in your test.
To view the Resources pane, click the Resources Pane button
Or
Select View > Resources.
Resources Pane in QTP Window
10) Test Flow Pane: The Test Flow pane is comprised of a hierarchy of actions and action calls in the current test, and shows the order in which they are run. Each action is displayed as a node in a tree, and includes calls to all of a test's actions. The steps of the action that you double-click in the Test Flow pane are displayed in the Keyword View and Expert View.
To view the Test Flow pane, click the Test Flow Pane button
Or
Select View > Test Flow.
Test Flow Pane in QTP Window
11) To Do Pane: The To Do pane enables you to create, view, and manage your TODO tasks. A TODO task is anything that needs to be done in a test, such as providing information relevant for handing over a testing document, or adding a reminder to yourself to add steps that test a new page in your application. You can assign tasks to others, and you can mark a task as complete when it is done. Your TODO tasks are saved with the test.
The To Do pane also
enables you to view the TODO comments that exist in the action or an open
function library (for example, instructions or notes adjacent to a step). To
show or hide the To Do pane, select View > To Do or click
the To Do Pane toolbar button.

To Do Pane in QTP Window
12) QTP Commands:
We can select QuickTest commands from the menu bar or from a toolbar.
QuickTest displays a different set of commands and toolbar buttons for tests.
We can also perform some QuickTest commands by pressing shortcut keys or
selecting commands from context (right-click) menus.
File Menu commands are used
for creating a new test, Opening an existing test and Save the tests.
Edit Menu commands are used
for performing cut, copy, Paste, delete functions and also used for splitting,
renaming, deleting the Actions.
View Menu commands are used
for showing and hiding the various panes and views (ex: Active screen, Data
Table, Information pane etc.)
Insert Menu Commands are used for inserting various
types of test and function library steps. (Ex: inserting Checkpoints, Output
values, synchronization
points, Programmatic statements and Transaction steps etc.)
Automation Menu Commands are used for managing our record and run sessions.
Resources Menu Commands are used for managing our
object repositories and other resources.
Debug Menu Commands are used for debugging
the steps in our test and any associated function library.
Tools Menu Commands are used for modifying the
Global testing options, checking the syntax of the active document, specifying how QuickTest identifies a particular test object, viewing the
native properties and operations of any object in an open application, Web
Event Recording Configuration, parameterizing the tests, configuring and
managing Virtual objects etc.
Window Menu Commands are used for displaying
documents in different styles.
Help Menu Commands are used for getting the Help
on all topics, information about new features, product information and Service
support etc.
Data Table Menu Commands are used to perform cut,
copy, paste, insert and delete functions etc. on data table.
No comments:
Post a Comment