unit-testing Unit testing of Loops (Java) Nested Loops Test


Example

A nested loop is a loop within a loop.

The outer loop changes only after the inner loop is completely finished / interrupted.

In this case, test cases should be designed in such a way that

Start at the innermost loop. Set all the outer loops to their minimum values. Perform Simple loop testing on the innermost loop (Test3 / Test4 / Test5 / Test6 / Test7). Continue till all the loops tested