top to down approach testing code example
Example: top to down approach testing
Testing takes place from top to bottom.
High-level modules are tested first and
then low-level modules and finally
integrating the low-level modules to
a high level to ensure the system is
working as intended. Stubs are used as
a temporary module if a module is
not ready for integration testing.