Lecture 9 - Software Testing
Lecture 9 - Software Testing
Software Testing
BITP 2213 Software Engineering
Content
V & V Planning
Inspection
Software Testing
• Why V n V?
– To discover defects in the deliverables / software artifacts
– To assess system usability and usefulness before
operational
– To establish confidence the software fit to be use
– To assess degree of stakeholder acceptance
Planning
Overview Follow-up
Indi vidual
Rework
pr eparation
Inspection
meeting
Hardware and
Testing Test recording
software
schedule. procedures.
requirements.
Constraints
• Using some techniques which ensure that all logical paths of the code
are tested and
• Maximum number of errors can be detected by executing these tests
• Prepare the Unit Test Plan (UTP) at the end of the design phase
• Code walkthrough
• Code inspection
Boundary
Equivalence
Value
Partitioning
Analysis
Logic Random
Coverage Generation
• Boundary value test cases are those which test the function or
field using values that
– Lie on the boundary
– Just above the boundary
– Just Below the boundary
Lower Upper
Lower Limit Lower Upper Limit Upper
Limit -1 Limit + 1 Limit -1 Limit + 1
• Most of the equivalence partition test cases are positive test cases
• Criterion:
– Every statement in the program must be executed at least once,
– Every branch in the program must be executed at least once, or
– Every path in the program must be executed at least once
• Example:
– The User Interface for searching the address book should be very friendly and should use the
following search criteria
– Can search the address book based on one or more of the following fields:
• E-mail Id of the person
• Name of the person
• Employee Number of the person
– Can accept one or more fields for search criteria
– Accepts partial values for E-mail and Name
Test Test
Specification
results cases
Next on Lecture 10
Software Maintenance