2.Testing Concepts, Issues
2.Testing Concepts, Issues
• Structural testing
• structural testing focus on the internal implementation, while viewing the
object to be tested as a white-box that allows us to see the contents inside.
FUNCTIONAL VS. STRUCTURAL TESTING:
WHAT TO TEST?
• Objects and perspectives
• Software programs or code exists in various forms and is written in different
programming languages
• viewed either as individual pieces or as an integrated whole
• different levels of testing corresponding to different views of the code and
different levels of abstraction
• More formalized and systematic BBT can be based on some formal models.
• WBT follows the major test activities of planning, execution, and follow-up
• WBT is typically limited to a small scale (due to large implementations)
• For large products, the WBT activities (unit testing) are carried out in the
encompassing framework where most of the planning is subject to the
environment; and the environmental constraints pretty much determine
what can be done (planning phase not so important)
Structural or White-Box Testing (WBT)
• BBT and WBT can also be compared by the way in which they address
the following questions:
• Objects: WBT is generally used to test small objects, such as small software
products or small units of large software products;
• while BBT is generally more suitable for large software systems or substantial
parts of them as a whole.
Comparing BBT with WBT
• Timeline: WBT is used more in early sub-phases of testing for large software
systems, such as unit and component testing,
• while BBT is used more in late sub-phases, such as system and acceptance
testing.