Software Testing & Quality - Wk6
Software Testing & Quality - Wk6
1
Click to edit Master title style
2 2
Click to edit
Mid-term Report
Master title style
3 3
Click to (Unit)
Module edit Master
Testing
title style
4 4
Click to (Unit)
Module edit Master
Testing
title style
• White-box testing-oriented:
1. White-box testing is possible for smaller programs;
2. Validation is the focus of later stages.
• The test-case design procedure for a module test:
Analyze the module’s logic using one or more of the
white-box methods, and then supplement these test cases
by applying black-box methods to the module’s
specification.
5 5
Click to (Unit)
Module edit Master
Testing
title style
• Non-incremental vs incremental
6 6
Click to (Unit)
Module edit Master
Testing
title style
7 7
Click to edit
Top-down Testing
Master title style
8 8
Click to edit
Top-down Testing
Master title style
• Guidelines:
1. “Critical sections” first;
2. I/O modules first.
9 9
Click to edit
Top-down Testing
Master title style
• Advantages:
1. Allows you to find human-factor errors and problems.
2. Makes it possible to demonstrate the program to the eventual user.
3. Serves as evidence that the overall design of the program is sound.
4. Serves as a morale booster.
• Disadvantages:
1. Some test cases for a module distant from the input module (e.g., H)
might not be created.
2. It’s difficult to reason how to create those test cases even if they are
possible.
3. It’s hard to relate the final outputs to the immediate results produced by
a module under testing (e.g., E) distant from the output module.
4. Top level design might change through time.
5. Incomplete testing might happen due to (a) difficulty to build stub
modules or (b) upper level modules providing resourse for lower ones.
1010
Click to editTesting
Bottom-up Master title style
• Guidelines:
1. “Critical sections” first;
2. I/O modules first.
1111
Click to edit Master title style
Comparison
1212
Click to edit
General Guidelines
Master title style
1313
Click to edit Master
Higher-Order Testingtitle style
1515
Click to edit Master
Higher-Order Testingtitle style
1616
Click to edit Master title style
Thank You!
17