Key Concepts
- Testing: the process of evaluating a program or system to ensure it meets its required specifications and works as expected, while identifying errors.
- Test case: a set of inputs, execution steps, and expected outcomes used to test a specific aspect of a program or system.
- Test data: the actual data used to test a program or system.
- Bug: an error or defect in a program or system that causes it to produce incorrect or unexpected results.
Testing vs Debugging
Testing focuses on identifying errors in a program, while debugging focuses on locating and fixing the errors identified during testing.
Black Box vs White Box Testing
Black box testing focuses on testing a program’s functionality without knowledge of its internal workings, while white box testing focuses on testing a program’s internal workings and structure.
Dry Running and Trace Tables
Dry running is testing an algorithm or program by manually executing it step by step, while tracing its execution. A trace table is a table used to record the execution steps and outcomes of an algorithm or program.