SOFTWARE TESTING
I. SOFTWARE DEVELOPMENT LIFE CYCLE (SDLC)
OVERVIEW OF SDLC
1. Client defines what the software should be like (the expected object or the
requirements)
2. Developer produces software according to client's requirements
3. Tester tests software against requirements and reports bugs to developer
4. Developer fixes bugs and modifies software according to latest requirements
TESTING
Software testing is a method of assessing the functionality of a software program.
TYPES OF TESTING
1. White Box Testing
The tester examines the code of the AUT (Application Under Testing) to see if the code is
written correctly
2. Manual Testing / Black Box Testing
The tester uses the application in order to test it (testing for properties, appearance, and
functionality)
3. Automated Testing
The tester creates test scripts that test the application similar Contents
II. WINRUNNER
1. OVERVIEW OF WINRUNNER
Win Runner is the most used Automated Software Testing Tool.
Created by Mercury Interactive, Inc. in 1992
WinRunner is an automated testing tool that tests GUI software and web pages
WinRunner combines a GUI software package and scripting language
1
GUI software package: Integrated Development Environment (IDE) allows the tester to
record, write, edit, run test scripts in one environment
Scripting language: Test Script Language (TSL) is based on C
Three aspects of GUI software to test with WinRunner
1. Functions
2. Properties
3. Bitmap features
How WinRunner Basically Tests
The tester creates a test script by recording the interaction with the AUT
The tester can insert "checkpoints" to test the properties, appearance, and text of objects
The tester can enhance test scripts with code
The tester can enhance test scripts with data for a data-driven test which inserts data to
determine if the AUT will accept it
The tester easily runs the test by pressing an icon
The tester reads the results
A temporary GUI Map file is created while recording; the GUI Map file acts as an interpreter
between application and test script
2. MAIN FEATURES WINRUNNER
Functionality testing tool
Supports C/s and web technologies such as (VB, VC++, D2K, Java, HTML, Power Builder,
Delphe, Cibell (ERP))
To Support .NET, xml, SAP, Peoplesoft, Oracle applications, Multimedia we can use QTP.
Winrunner run on Windows only.
Xrunner run only UNIX and Linux.
Tool developed in C on VC++ environment.
To automate our manual test win runner used TSL (Test Script language like c)
2
III. LOADRUNNER
1. OVERVIEW OF LOADRUNNER
This is a HP product which can be used as a performance testing tool.
This can be bought as a HP product from its HP software division.
Also, it is very much useful in understanding and determining the performance and
outcome of the system when there is actual load.
One of the key attractive features of this testing tool is that, it can create and handle
thousands of users at the same time. This tool enables you to gather all the required
information with respect to the performance and also based on the infrastructure.
The LoadRunner comprises of different tools; namely, Virtual User Generator, Controller,
Load Generator and Analysis.
2. LOADRUNNER TESTING PROCESS
LoadRunner contains the following components:
The Virtual User Generator or VuGen records end-user business processes and creates an
automated performance testing script, known as a Vuser script.
The Controller organizes drives, manages, and monitors the load test
Analysis helps you view, dissect, and compare the results of the load tests.
3. LOADRUNNER ARCHITECTURE
1. VuGen (Virtual User Generator) for generating and editing scripts.
2. Controller for composing scenarios which specify which load generators are used for which
script and for how long, etc. During runs the Controller receives real-time monitoring data and
displays status.
3. Analysis which assembles logs from various load generators and formats reports for
visualization of run result data and monitoring data.
4. Agent process establishes connection between controller and load generator.
5. Load generator generates the load against the application.
3
IV. HP QTP (QUICK TEST PROFESSIONAL)
1. OVERVIEW OF QTP
Quick Test Professional (QTP) is an automated functional Graphical User
Interface (GUI) testing tool that allows the automation of user actions on a web or client based
computer application.
QTP is a Functional testing tool which is best suited for regression testing of the applications
QTP is a licensed/commercial tool owned by HP which is one of the most popular tools
available in the market
It compares the actual and expected result and reports the results in the execution summary.
QTP integrates with other Mercury testing solutions including:
TestDirector / Quality Center
WinRunner
LoadRunner
2. QTP ENVIRONMENT
Windows
C++, Visual Basic, Java, .NET
Web
Web Applications, Web services, Flash
Other technologies
SAP, Siebel, Oracle, Peoplesoft, ActiveX
3. ADVANTAGES
Developing automated tests using VBScript doesn't require a highly skilled coder and relatively
easy when compared other object oriented programming languages.
Easy to use, ease of navigation, results validation and Report generation.
Readily Integrated with Test Management Tool (HP-Quality Center) which enables easy
scheduling and Monitoring.
Can also be used for Mobile Application Testing.
Since it is a HP product, the full support is provided by HP and by its forums for addressing
technical issues.
4
4. DISADVANTAGES
Unlike Selenium, QTP works in Windows operating system only.
Not all versions of Browsers are supported and the testers need to wait for the patch to be
released for each one of the major versions
Having said that it is a commercial tool, the licensing cost is very high.
Even though scripting time is less, the execution time is relatively higher as it puts load on
CPU & RAM