Presentation is loading. Please wait.

Presentation is loading. Please wait.

TESTING LOOPS ● Simple Loops ● Nested Loops ● Concatenated Loops ● Unstructured Loops.

Similar presentations


Presentation on theme: "TESTING LOOPS ● Simple Loops ● Nested Loops ● Concatenated Loops ● Unstructured Loops."— Presentation transcript:

1 TESTING LOOPS ● Simple Loops ● Nested Loops ● Concatenated Loops ● Unstructured Loops

2 SIMPLE LOOP

3 ● Skip the loop entirely. ● Only one pass through the loop. ● Two passes through the loop. ● m passes through the loop where m < n. ● n-1, n, n+1 passes through the loop. ● n is the maximum number of allowable passes through the loop.

4 NESTED LOOPS

5 ● Start at the innermost loop. Set all other loops to minimum values. ● Conduct simple loop tests for the innermost loop while holding the outer loops at their minimum iteration parameter (e.g. loop counter) values. Add other tests for out-of- range values. ● Work outward, conducting tests for the next loop, but keeping all other outer loops at minimum values and other nested loops to "typical" values. ● Continue until all loops have been tested.

6 CONCATENATED LOOPS ● Use simple approach for each loop if they are independent. ● If they are dependent, test as nested loops.

7 UNSTRUCTURED LOOPS ● REDESIGN


Download ppt "TESTING LOOPS ● Simple Loops ● Nested Loops ● Concatenated Loops ● Unstructured Loops."

Similar presentations


Ads by Google