Explain about Loop Testing methodology?



Explain about Loop Testing methodology?..

Answer / 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

More Manual Testing Interview Questions

How many testcases have you written till, now as an average per project?

1 Answers   AppLabs,


I entered all the field in a form and b4 clicking the submit button the system goes off...in this senario where is my data stored or it is lost???

2 Answers   SuperValu,


what is system integration testing and component integration testing?

5 Answers   ArisGlobal,


Expain about V model?

5 Answers   AppLabs,


Who will do the Effort Estimation and Scheduling ?

2 Answers   IBM,


what is testing?

6 Answers  


On what type of browsers you have tested your web page?

3 Answers   AZTEC,


If tester found some bugs in the application then which format they will send it to development team.

4 Answers   CTS,


If we have no srs, brs but we have test cases does you execute the test cases blindly or do you follow any other process?

0 Answers  


what is mean by defect resolution and its use??

1 Answers   SoftTech,


What are the benefits of creating multiple actions within any virtual user script?

0 Answers  


What is the diff betwn Functional nad regression testing and do u excute same test case or write new one for regression

9 Answers   Patni, TCS,


Categories