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

what is the technical challange you faced in your module.please ans me the question i just want example can me any example please very important

1660


What do you understand by usability testing?

839


What is a maturity level?

936


What’s the difference between a bug and a defect?

865


Test cases on send/ receive button of Microsoft outlook.

4343






What are the two main categories of software testing?

862


what is the function generator?

1888


Negative test cases for phone camera

452


Can you explain tpa analysis?

834


1) Difference between "Delete" and "Concatenate" with reference to databases? 2) Difference between SDLC and STLC. 3) Latest versions of the browsers used. 4) What is URL Tampering? 5) Full form of URL. I don't need the answers. These are just for reference.

2148


What do you like about computers?

1962


What are the tasks of test closure activities in software testing?

824


how to write defects in excel sheets when defects occured

1742


what are the functional test cases for enter user name,enter pass word,click on ok(only functional test cases)

2179


How can I done a Web Testing? Which steps are include in it?

1613