Académique Documents
Professionnel Documents
Culture Documents
5
The V-Shaped Model
• V-Model evolved from waterfall Model.
• Each phase must be completed before the next phase
begins.
• Instead of moving down in a linear way, the process
steps are bent upwards after the coding phase, to form
the typical V shape.
• Testing is emphasized in this model more than in the
waterfall model.
• It is a structured approach to testing.
• Brings high quality into the development of our
products.
Steps in the V-Shaped Model
STATIC DYNAMIC
Logical Errors
Disadvantages
As knowledge of code and internal structure is a prerequisite, a skilled tester is
needed to carry out this type of testing, which increases the cost.
And it is nearly impossible to look into every bit of code to find out hidden
errors, which may create problems, resulting in failure of the application.
Gray Box Testing
Gray Box Testing is a software testing method which is a combination of Black Box
Testing method and White Box Testing method.
In Gray Box Testing, the internal structure is partially known. This involves having
access to internal data structures and algorithms for purposes of designing the test
cases, but testing at the user, or black-box level.
Gray Box Testing is named so because the software program, in the eyes of the
tester is like a gray/semi-transparent box; inside which one can partially see.
EXAMPLE
An example of Gray Box Testing would be when the codes for two units/modules are
studied (White Box Testing method) for designing test cases and actual tests are
conducted using the exposed interfaces (Black Box Testing method).
Test Case Design
19
Levels of Software Testing
Unit Testing
Fault-directed testing:
Unit testing
Integration testing
Conformance-directed testing:
System testing
Acceptance testing
Verification and Validation
27
Verification vs validation
Verification:
"Are we building the product right"
The software should conform to its
specification
Validation:
"Are we building the right product"
The software should do what the user really
requires
28
The V & V process
29
Static and dynamic
verification
Software inspections Concerned with
analysis of the static system representation
to discover problems (static verification)
May be supplement by tool-based document and
code analysis
Software testing Concerned with exercising
and observing product behavior (dynamic
verification)
The system is executed with test data and its
operational behavior is observed
30
Static and dynamic V&V
31
V& V goals
Verification and validation should
establish confidence that the software is
fit for purpose
This does NOT mean completely free of
defects
Rather, it must be good enough for its
intended use and the type of use will
determine the degree of confidence that
is needed
32
Testing and Debugging
Defect testing and debugging are distinct processes
Verification and validation is concerned with
establishing the existence of defects in a program
Debugging is concerned with locating and repairing
these errors
Debugging involves formulating a hypothesis about
program behavior then testing these hypotheses to find
the system error
The Debugging Process
34
Reading Assignment
Equivalence Partitioning
Boundary Value Analysis
Comparison Testing
Orthogonal Array Testing