Beruflich Dokumente
Kultur Dokumente
Description : Selenium is a free automated testing suite for web applications across different
browsers and platforms. It is quite similar to HP QTP only that Selenium focuses on automating webbased applications.
Procedure: Selenium is not just a single tool but a suite of softwares, each catering to different testing
needs of an organization. It has four components.
Selenium Remote Control (Selenium RC): Selenium RC was the flagship testing framework of the
whole Selenium project for a long time. This is the first automated web testing tool that allowed users to
use a programming language they prefer.As of version 2.25.0, RC can support the following
programming languages:
Java
C#
PHP
Python
Perl
Ruby
Selenium Grid :Selenium Grid was developed by Patrick Lightbody to address the need of minimizing
test execution times as much as possible. It was capable of capturing browser screenshots during
significant stages, and also of sending out Selenium commands to different machines simultaneously.
Selenium IDE :Shinya Kasatani of Japan created Selenium IDE, a Firefox extension that can automate
the browser through a record-and-playback feature. He came up with this idea to further increase the
speed in creating test cases.
Selenium Web Driver :
Advantages of Selenium:
Very easy to use and install
No programming experience is required ,though knowledge of HTML and COM is
required
Provides support for extensions
Summary
Selenium is more advantageous than QTP in terms of costs and flexibility. It also allows you
to run tests in parallel, unlike in QTP where you are only allowed to run tests sequentially.
5. Create a test plan document for any application (e.g. Library Management System)
Prepared by :
Name
Date :
Reviewed :
Signature:
Name
Date :
Approved by :
Date :
Designation:
Designation:
Signature:
Name
Designation:
Signature:
Revision History
Date
25
th
November, 2013
Version
1.0
Description
First version
Author
Test Team
Table of Contents
1. Introduction
2. Purpose
3. Scope
4. References
5. Document overview
6. Software Testing Strategies
a. Unit testing
b. Integration testing
c. Validation testing
d. System testing
7. Features to be tested
9. Features not to be tested
INTRODUCTION
The Library Management System is an online application for assisting a librarian in managing a
book library in a University. The system would provide basic set of features to add/update clients,
add/update books, search for books, and manage check-in / checkout processes. Our test group tested
the system based on the requirement specification.
2.Purpose
To test the Library Management Functionality
2.1Test Scope
To verify the functionality of different features of the Library management system
2.2.Test Milestones
S.no
Activity
Output
Date(dd/mm/yyyy)
Test Planning
Test plan
1 week
Re acceptance test
specification
2 weeks
3 weeks
2 weeks
1 week
1 week
1 week
5. Test strategy
Test types
Required(Y/N)
Integration testing
Functional testing
Yes
System testing
Functional testing
Yes
Performance testing
No
Load testing
No
Stress testing
No
GUI testing
Yes
Yes
Performance testing
No
Load testing
No
Stress testing
No
GUI testing
Yes
Test Objective
Technique
Completion criteria
NA
Special considerations
NA
Test Objective
Technique
Completion criteria
Special considerations
ENVIRONMENTAL used
1.1
Hardware: Core2Duo
1.2
QTP IDE
To launch QTP, In Start Menu, Choose Programs > Quick Test Professional Folder > Quick
Test Professional
The first time you start QTP, the Add-in Manager dialog box opens.It Displays list of all
installed add-in along with license expiry date.
It is recommended to select only the add-ins required for your particular testing session .
The Start Page describes the new features in this releaseincluding links to more
information about these features.
Title Bar Displays the name of the active document. If changes have been made since it was
last saved, an asterisk (*) is displayed next to the document name in the title bar.
Menu Bar Displays menus of QTP commands.
Toolbars Contains buttons to assist you in managing your document
Document Tabs Enables you to navigate open documents
Keyword View Displays test steps in a graphical representation
Expert View
In the Expert View , each line represents a Test Step in VB Script
To understand expert view better , lets analyze Step # 2 from our TEST recorded earlier
An Object's Name is displayed in parentheses following the Object Type.Here the Object
Name is Login and Object Type is Dialog
Objects in Object Hierarchy are separated by a "dot".Here Dialog and WinEdit are fall in
the same Object Hierarchy
The Operation performed on the object is always displayed at the end of the statement
followed by any values associated with the operation.Here the word "Guru" is inserted in the
AgentName Edit Box using the Set Method
Syntax for a statement in expert view is GUI object
Replay in qtp
Now , lets go ahead and REPLAY the script to ensure the test steps have recorded correctly.
Click the Run Button.
The Run Dialog Box Opens which enables you to specify the location in which you want
to save the run session results.
This option displays the default path and folder name in which results are stored. By default
results are stored in Test Folder .
You may accept the default settings or specify a folder of your choice
Temporary run results folder options saves the run results in a temporary folder. This option
overwrites any results previously saved in this folder.
Its recommended that while developing your test script choose the Temporary option
and once the script is baseline you can use the new folder option window you can see a
yellow marker pointing at the step which is currently being executed.
During Replay the script performed exactly the same 5 steps that were recorded which
signifies that there were no errors in recording.
Test results in qtp
Lets understand the Test Results generated by QTP
Right Hand Side shows Test Results Summary
Left Hand Side is Test Results Tree - an icon-based view of the test steps that were
performed while the test was running. Similar to the test tree in Keyword View
You can capture Movie / Screenshots of entire Test Run using Tools > Options > Run Tab
You can print/export full/part of results in HTML , Word or PDF format.
You can exports the results to Quality Center
You can change the format of Results by using Results.xml and creating a XSL
Parameters in qtp
You may be wondering why take the Herculean effort to automate this simple scenario
Check that user successfully logs in to the application on inputting valid Agent Name &
Password
The need becomes obvious if we extend the scope of the scenario to include a Combination of
valid ALPHANUMERIC Agent Name & Password
In this case , the Test Steps Will Remain the Same. But we will have more combinations of
Data To TEST. We will restrict to just 3 of possible 8 combinations
To achieve this you can either copy the six steps and give different data values which is in
fact something you would do manually. Or you can use Parametrization
The easiest way to parametrize an argument , in our case Guru is in Keyword view , Click
the Parametrization Icon
Value Configuration Dialog Box Opens. Currently the value is set to a Constant. Click on
Parameter Radio Button. QTP assigns a default name to these parameter. You can give a name of
your choice. Click Okay
In the Global Sheet , a column with Header "Agent Name" and value Guru is created. You can
enter more values for this parameter
Likewise you can also parameterize the argument Password and enter different test data sets.
What this Data sheet means is QTP will iterate the same 6 steps that we have recorded 3 times.
During first iteration it will use the data in the first row. During second it will use data in the
second row and so on
Now lets run the script. This is the first iteration. This is the second iteration
In the status bar QTP gives information of the row, it is currently using as test data and
highlights the corresponding row in the data sheet. The results will show summary of the 3
iterations.
Result:
Experiment 9
Aim: Study of Any Test Management Tool ( TestDirector)
Test Director is a global test management solution which provides communication, organization,
documentation and structure to the testing project.
Requirements are linked to tests and defects to provide complete traceability and aid the
decision-making process .
See what percent of requirements are covered by tests
Each requirement in the tree is described in detail, and can include any relevant attachments.
The QA tester assigns the requirement a priority level which is taken into consideration when
the test team creates the test plan
Import from Microsoft Word or third party RM tool
Planning Tests
The Test Plan Manager enables to divide application according to functionality. Application
can be divided into units, or subjects, by creating a test plan tree.
Define subjects according to:
Application functionality-such as editing, file operations, and reporting
Type of testing-such as functional, user interface, performance, and load
As the tests are also linked to defects, this helps ensure compliance with testing requirements
throughout the testing process
Running Tests
As the application constantly changes, using test lab, run manual and automated tests in the
project in order to locate defects and assess quality.
By creating test sets and choosing which tests to include in each set, test suite can be created.
A test set is a group of tests in a TestDirector project database designed to achieve specific
testing goals.
Tests can be run manually or scheduled to run automatically based on application
dependencies.
Tracking Defects
Locating and repairing application defects efficiently is essential to the testing process.
Defects can be detected and added during all stages of the testing process. In this phase you perform
the following tasks:
This tool features a sophisticated mechanism for tracking software defects, enabling Testing
Team and the project Team to monitor defects closely from initial detection until resolution
By linking TestDirector to e-mail system, defect tracking information can be shared by all
Development and Management Teams, Testing and Wipro Software Quality Assurance
personnel
System Requirements for TestDirector
Server System configuration : 128 MB of RAM , 500 MB of free disk space, Win NT server,
Win 2K server, IIS 5.0, MSAccess/Oracle 7.x,8.x,9/MS SQL Server Client System configuration : 64
MB of RAM , 10 MB of free disk space, Win 95/98/NT/2K/XP, IE 5 , Netscape 4.7.
TEST LINK
Aim:
Description:
TestLink is a web-based test management system that facilitates software quality assurance. It is
developed and maintained by Teamst. The platform offers support for test cases, test suites, test
plans, test projects and user management, as well as various reports and statistics.
Procedure:
Requirements
Because TestLink is web-based software an administrator needs access to a web server and a
database in order to install and run it. TestLink has support for the MySQL and PostgreSQL
databases. In order to use TestLink, a user only requires a web browser.
Usage
The basic units used by TestLink are: Test Case, Test Suite, Test Plan, Test Project and User
Test Plan
Test Plans are the basic unit for executing a set of test on an application.
Test Plan definition consists from title, description and status "Active" check-box. Description
should include the next information with respect to company processes:
Summary/Scope
Features to be tested
Features to not be tested
Test criteria (to pass tested product)
Test environment, Infrastructure
Test tools
Risks
References (Product plan or Change request, Quality document(s), etc.)
Test Case
A Test Case describes a simple task in the workflow of an application. After a tester runs a test
case it can either pass, fail or block it. Test cases are organized in test suites. Test Cases have the
following parts:
User
Each TestLink user has an assigned Role that defines the features available. The default types
are: Guest, Test Designer, Senior tester, Tester, Leader and Administrator but custom roles can
also be created.
Test Projects
Test Projects are the basic organizational unit of TestLink. Test Project includes requirements
documentation, Test Specification, Test Plans and specific user rights.
Execution : Test Status
Execution is the process of assigning a result (pass, fail, blocked) to a Test Case for a
specific Build. A 'Blocked' Test Case is not possible to test for some reason (e.g. a problem
in configuration disallows to run a tested functionality).
Features
Result: