Chap13 Ooad
Chap13 Ooad
Chap13 - OOAD
Object-Oriented Systems
Development:
Development
Using the Unified Modeling
Language
Chapter 13:
Software Quality Assurance
Goals
Introduction
Two issues in software quality are:
• Validation or user satisfaction
• Verification or quality assurance.
Introduction (Con’t)
Introduction (Con’t)
• Error Types:
– Language errors or syntax errors
– Run-time errors
– Logic errors
Debugging Tools
Testing Strategies
There are four types of testing
strategies These are:
• Black Box Testing
• White Box Testing
• Top-down Testing
• Bottom-up Testing
Input Output
Black-Object Testing
• Once you have created fully tested
and debugged classes of objects you
will put them into library for use or
reuse.
Input Output
Top-down Testing
• It assumes that the main logic of the
application needs more testing than
supporting logic.
Bottom-up Approach
• It takes an opposite approach.
• It assumes that individual programs
and modules are fully developed as
stand alone processes.
• These modules are
tested individually,
then combined for
integration testing.
Object-Oriented Systems Development Bahrami ? Irwin/ McGraw-Hill
Downloaded by Yuvaraj V, Assistant Professor, BCA ([email protected])
lOMoARcPSD|16894688
Reusability of Tests
• The simpler is a test, the more likely
it is to be reusable in subclasses.
• However, simple tests tend to find
only the faults you specifically
target; complex tests are better at
both finding those faults and
stumbling across others by sheer
luck.
Test Cases
• All methods of your system must be
checked by at least one test.
• Construct some test input cases, then
describe how the output will look
like.
• Compare the outcomes
with the expected output.
Objective of Testing
• Myers describes testing as follows :
• Testing is the process of executing a
program with the intent of finding
errors.
• A good test case is the one that has a
high probability of detecting an as-
yet undiscovered error.
• A successful test case is the one that
detects an as-yet undiscovered error.
Object-Oriented Systems Development Bahrami ? Irwin/ McGraw-Hill
Downloaded by Yuvaraj V, Assistant Professor, BCA ([email protected])
lOMoARcPSD|16894688
Test Plan
• Testing is a balance of art, science,
and luck.
• Test plan offers a road map for
testing activity.
• Test plan should
state test objectives,
and how to meet
them.
Continuous Testing
• Testing must take place on a
continuous basis, and this refining
cycle must continue throughout the
development process until you are
satisfied with the results.
Summary
• Testing is a balance of art,
science, and luck.
• Testing may be conducted for
different reasons.
• Quality assurance testing looks
for potential problems in a
proposed design.
Summary (Con’t)
• We must develop a test plan for
locating and removing bugs.
• A test plan offers a road map for
testing activity; it should state test
objectives and how to meet them.
• The plan need not be very large; in
fact, devoting too much time to the
plan can be counterproductive.
Summary (Con’t)
• There are no magic tricks to
debugging; however, by selecting
appropriate testing strategies and a
sound test plan, you can locate the
errors in your system and fix them
by utilizing debugging tools.