Explain about Loop Testing methodology?

Answer Posted / ramyab.mca@gmail.com

Hai...

Loops are the basis of most algorithms implemented using
software.Loop testing is a white box testing approach that
concentrates on the validity of loop constructs.Four loops
can be defined: simple loops, concatenate loops, nested
loops, and unstructured loops.

1.Simple loops: The follow group of tests should be used on
simple loops, where n is the maximum number of allowable
passes through the loop:

• 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.


2.Nested loop: For the nested loop the number of possible
tests increases as the level of nesting grows. This would
result in an impractical number of tests. An approach that
will help to limit the number of tests:

• Start at the innermost loop. Set all other loops
to minimum values.
• Conduct simple loop tests for the innermost loop
while holding the outer loop at their minimum iteration
parameter value.
• Work outward, performing 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.


3.Concatenated loops: Concatenated loops can be tested
using the techniques outlined for simple loops, if each of
the loops is independent of the other. When the loops are
not independent the approach applied to nested loops is
recommended.

4.Unstructured loops: This class of loop should be
redesigned to reflect the use of the structured programming
constructs.

K,Byeeee...
Thanks & Regards
B.Ramyasri

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can data caching have a negative effect on load testing results?

2366


What kind of testing to be done in client server application and web application? Explain

737


How does your preferred work style work with the ideal test-manager role that you just described? What is different between the way you work and the role you described?

1698


how to create automation frame work ?

1585


What is actually a rule based testing

1570






What is the difference between latent and masked defects?

680


What are the challenges you faced in your project (Testing) and in your company?

2589


How to find that tools work well with your existing system?

1589


Why Equivalence Partitioning is called equivalence or what is the significance of equivalence term in ECP?

1628


what kind of testing have u done?

1509


What is the big deal about ‘requirements’?

713


write test case for gmail sign up page ?

1572


How to test an application if it was already developed and it is in the state of changing the functionality according to the customer requirement How to start testing in this situation. I got an application to test.It is a desktop application.It is still developing and started 8 months back.how can i start to test this application? Is it the right way to test it in "Random testing"? or writing the testcases from page one and executing them.i have an another responsibility that is I have to automate that application. can anyone tell me what is the process to test this application.

1546


What is an entry criteria?

641


What is localization testing (l10n testing)?

737