QuickTest
Professional
Chapter
–I Introduction
1)
Manual Vs Automation
- Testing the Software manually is called Manual Testing
- Testing the Software using any Tool (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.
2) 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
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.
3) 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.
4) Tools available for Functional & Regression Testing
Testing Tools Basically 3 types
1) Vendor Tools (ex: HP-QTP,
Borland-Silk Test, IBM-Rational Robot etc)
2) Open source Tools (JMeter,
QA WebLoad, Bugzilla etc)
3) In-hose 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.
5) QTP Introduction
Ø Functional and Regression
Testing Tool.
Ø QTP 9.5 is the current version
released in 2008
Ø Developed by Mercury
Interactive and takeover by HP (Hewlett Packard)
Ø QTP Tool derived from Astra
Quick Test.
Ø 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 available
for Windows and UNIX operating environments.
Ø It supports various
technologies (ex: Java, .NET, 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.
To
successfully install and run QuickTest Professional, we need to meet the
following system requirements:
Computer/Processor-
An IBM-PC or compatible with a Pentium III or higher
(Pentium IV or higher recommended) microprocessor.
Operating System-
Windows 2000—Service Pack 4, Update Rollup 1
for Windows 2000 Service Pack 4,
Windows XP
32-Bit Edition—Service Pack 2,
Windows XP
64-Bit Edition—Service Pack 1,
Windows Server
2003 32-Bit Edition—Service Pack 1,
Windows
Server 2003 R2 (32-Bit x86), Windows
2003 64-BitEdition, VMWare workstation, Citrix, or Windows Vista.
Memory-
Minimum
of 512 MB of RAM.
Color
Settings- Minimum
of High Color (16 bit).
Hard
Disk Space- 480
MB of free disk space for application files and folders (recommended 630 MB),
and an additional 120 MB of free disk space on the system disk (the disk on
which the operating system is installed).
It
is recommended to have at least 150 MB free disk space on the system disk for
the operating system and QuickTest Professional to run correctly.
Browser- Microsoft
Internet Explorer 6.0 Service Pack 1 or 7.0, Mozilla FireFox 1.5 or 2.0.0.1, or
Netscape 8.1.2.
Chapter
–II Overview on QTP Window
1) Starting Process
To
start QuickTest,
Choose
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: This window lists out all QTP
supported technologies with respect to license. QTP trail version provides 3
default add-ins like Activex, Visual Basic and Web.
We
(Test engineers) have to select our current AUT developed technology in that
list.
After
selecting the desired add-in in the Add-in Manager Dialog box then click on
‘OK’ button.
The
QuickTest Professional window opens as given below.
QTP welcome
Screen
We
can choose to open the QuickTest tutorial,
Start
recording a new test,
Open
an existing test, or
Open a blank new test.
This
screen is not mandatory, if we do not want this window to be displayed the next
time we start QuickTest, clear the ‘Show this screen on startup’ check box.
Click
on Blank Test
Then The
QuickTest window displays as given below
QTP Window
2) Key Elements in the QuickTest Window
a)
Document Area
The document area of the
QuickTest window can display the following document types:
1) Test Pane- Enables us to
create, view, and modify our test in Keyword View or Expert View.
i) Keyword View-Contains each step,
and displays the object hierarchy, in a modular, icon-based table.
ii) Expert View- Contains
each step as a VBScript line. In object-based steps, the
VBScript
line defines the object hierarchy.
2)
Function Library-
Enables us to create, view, and modify functions (operations) for use with our
test.
b)
Active Screen-
Provides a snapshot of our application as it appeared when we performed a
certain step during the recording session.
c) Information pane-
Displays a list of syntax errors found
in our test and function library scripts.
d) 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. (Not displayed by
default)
e) Data Table- Assists us in
parameterizing our test. The Data Table contains the Global tab and a tab for each action.
f) Debug Viewer pane-
Assists us in debugging our document. The Debug Viewer pane contains the Watch, Variables, and
Command tabs. (Not displayed by default)
g)
QuickTest title bar- Displays the name of the active
document.
h) Menu bar- Displays menus of
QuickTest commands.
i) Standard toolbar-
Contains buttons to assist us in managing our document.
j) Automation toolbar-Contains
buttons to assist us in the testing process.
k) Debug toolbar-
Contains buttons to assist us in debugging our document.
l) Edit toolbar- Contains buttons to
assist us in editing our test or function library.
m) Insert toolbar-
Contains buttons to assist us when working with steps and statements
in our test or function library.
n) Tools toolbar-
Contains buttons with tools to assist us in the
testing process.
o) View toolbar- Contains
buttons to assist you in viewing your document.
p)
Action toolbar- Contains
buttons and a list of actions, enabling us to view the
details of an individual action or the entire test flow.
No comments:
Post a Comment