Loading
Verification
vs. Validation
Verification and
validation (V & V) is the generic name given to checking processes which
ensure that software conforms to its specification and meets the needs of the
software customer. The system should be verified and validated at each stage of
the software process using documents produced during the previous stage.
Verification and validation therefore starts with requirement reviews and
continues through design and code reviews to product testing.
Verification and
validation are sometimes confused. They are, in fact, different activities. The
difference between them as summarized by Boehm(1979):
Ø Verification : Are we building the product right?
Ø Validation : Are we building the right product?
Verification
involves checking that the program conforms to its specification.
Validation
involves checking that the program as implemented meets the expectations of the
customer.
Distinction between Verification & Validation:
Verification
- A set of operations that the software correctly implements a particular function.
- It focuses on "are we building the product right?"
- Ensure the correct implementation of a specific function.
- It is performed at the each and every stages of the software coding like unit, module & subsystem testing.
- Software verification is achieved through a series of white-box tests that shows conformity to its design & statement of codes.
Validation
- A different set of activities that ensures that the software that has been produced is traceable to customer real needs.
- It focuses on "are we building the right product?"
- Ensure that the software that has been built is traceable to customer requirements..
- It is performed at the later stages of the software development like system testing, acceptance testing.
- Software verification is achieved through a series of black-box tests that shows conformity requirements.
Software
Testing Fundamentals
Ø Objective of software testing is to uncover errors.
Ø Testing is a process to identify all defects existing in a software
product.
Ø A successful test is one that uncovers an as-yet-undiscovered error.
Ø Testing has a dual function; it is used to establish the presence of
defects in a program and it is used to help judge whether or not the program is
usable in practice.
Ø The testing process cannot show the absence of errors and defects,
it can show only that software errors and defects are present.
Ø Testing should be scheduled as part of the project planning process.
Adequate resources must be made available for testing.
Testing
Process
The testing
process consists of five stages. In general, the sequence of testing activities
is component testing, integration testing then user testing. However, as
defects are discovered at any one stage, they require program modifications to
correct them and this may require other stages in the testing process to be
repeated.
The stages in the testing process are:
(i) Unit Testing -
Individual components are tested to ensure that they operate correctly. Each
component is tested independently, without other system components.
(ii) Module Testing - A module is a collection of dependent components such as object
class, an abstract data type or some looser collection of procedures and
functions. A module encapsulates related components so can be tested without
system modules.
(iii) Sub-System Testing -
This phase involves testing collections of modules
which have been integrated into sub-systems. Sub-systems may be independently
designed and implemented. The most common problems which arise in large
software systems are sub-system interface mismatches. The sub-system test
process should therefore concentrate on the detection of interface errors by
rigorously exercising these interfaces.
(iv) System Testing - The sub-system are integrated to make up the entire system. The
testing process is concerned with finding errors that result from unanticipated
interactions between sub-systems and system components. It is also concerned
with validating that the system meets its functional and non-functional
requirements.
(v) Acceptance Testing - This is the final stage in the testing process before the system is
accepted for operational use. The system is tested with data supplied by the
system procurer rather than simulated test data. Acceptance testing may reveal
errors and omissions in the system requirements definition because the real
data exercises the system in different ways from the test data. Acceptance
testing may also reveal requirements problems where the system's facilities do
not really meet the user's needs or the system performance is unacceptable.
Acceptance
testing is sometimes called alpha testing. Bespoke systems are
developed for a single client. The alpha testing process continues until the
system developer and the client agrees the delivered system is an acceptable
implementation of the system requirements.
When a system is
to be marketed as a software product, a testing process called beta
testing is often used. Beta testing involves delivering a system to a
number of potential customers who agree to use that system. They report
problems to the system developers. This exposes the product to real use and
detects errors which may not have been anticipated by the system builders.
After this feedback, the system is modified and either released for further
beta testing or for general sale.
Testing
Strategies
A
testing strategy is a general approach to the testing process. Different
testing strategies may be adopted depending on the type of system to be tested
and the development process used.
The most
popular testing strategies are:
(1)
Top-Down testing strategy where testing
starts from the top-level component of the hierarchy and proceeds through to
lower-level. After the top-level component has been tested, its subcomponents
are implemented and tested in the same way. This process continues recursively
until the bottom-level components are implemented. The whole system may then be
completely tested.
If top-down testing is used, unnoticed design errors may be detected
at an early stage in the testing process. Early error detection means that
extensive re-design and re-implementation may be avoided.
(2)
Bottom-Up testing strategy where testing
starts from the lowest-level component of the hierarchy and works upwards.
Bottom-up testing is the converse of top-down testing. It involves testing the
module at the lower levels in the hierarchy, and then working up the hierarchy
of modules until the final module is tested.
In bottom-up strategy, must have some idea of the top-level. This testing is necessary if existing modules
have to be re-used as the test drivers and test data should be distributed with
the component.
If top-down development is combined with bottom-up testing, all
parts of the system must be implemented before testing can begin.
Version
and Release Management
Version and release management
are the process of identifying and keeping track of different versions and
releases of a system. Version managers must devise procedures to ensure that
different versions of a system may be retrieved when required and are not
accidentally changed. They may also work with customer liaison staff to plan
when new release of a system should be distributed.
A system version is an
instance of a system that differs, in some way, from other instances. New
versions of the system may have different functionality, performance or may
repair system faults. Some versions may be functionally equivalent but designed
for different hardware or software configurations. If there are only small
differences between versions, one of these is sometimes, called a variant of
the other.
A system release
is a version that is distributed to customers. Each system release should
either include new functionality or should be intended for a different hardware
platform. Normally, there are more versions of a system than releases. Some
versions may never be released to customers. For example, versions may be
created within an organization for internal development or for testing.
Identifying
versions of a system appears to be straightforward. The first version and
release of a system is simply called 1.0, subsequent versions are 1.1, 1.2 and
so on.
A release is just an executable program or set of programs. It
usually also include:
(i)
Configuration files defining how the release should be configured for particular
installations.
(ii)
Data files which are needed for successful system operation.
(iii)
An installation program which is used to help install the system on target hardware.
(iv)
Electronic and paper
documentation describing the system.
All these
information must be made available on some medium which can be read by
customers for that software. For large systems, this may be magnetic tape. For
smaller systems, floppy disks may be used. Increasingly, however, releases are
distributed on CD-ROM disks because of their large storage capacity.
When a system release is
produced, it is important to record the versions of the operating system,
libraries, compilers and other tools used to build the software. If it has to
be rebuilt at some later date, it may be necessary to reproduce the exact
platform configuration. In some cases, copies of the platform software and
tools may also be placed under version management.
No comments:
Post a Comment