Print Page | Close Window

Loop Testing

Printed From: One Stop Testing
Category: Software Testing @ OneStopTesting
Forum Name: Beginners @ OneStopTesting
Forum Discription: New to the Club...!!! Don't Worry, We are here for you...!!! Learn the very basics of Software Testing and other pertinent Informations.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=3018
Printed Date: 18Jul2025 at 4:26am


Topic: Loop Testing
Posted By: tanushree
Subject: Loop Testing
Date Posted: 18Oct2007 at 12:57am
Loop Testing
Loops are fundamental to many algorithms. Loops can be categorized as, define loops as simple, concatenated, nested, and unstructured. Loops can be defined in many ways.
Examples:

                                               
                                                         Fig 3.5: Different types of Loops

To test the loops, following guidelines may be followed:
•   Simple Loops of size n:
o   Skip loop entirely
o   Only one pass through the loop
o   Two passes through the loop
o   m passes through loop where m<n.
o   (n-1), n, and (n+1) passes through the loop. This helps in testing the boundary of the loops.



Print Page | Close Window