Unit Testing
Unit Testing: -
After completion of design & their reviews, the programmers start coding.
In this phase, the programmers prepare programs & then test each program using
White Box Testing Techniques.
There are 4 White Box Testing Techniques:
1.Basis Path Testing
2.Control Structure testing
3.Program technique Testing
4.Mutation Testing
These Techniques are applicable only for Programs.
1.Basis Path Testing:
During this test the programmers concentrate on the execution of
programs without any runtime errors. To conduct this test, the corresponding
programmer follows the below approach.
Write a program with respect to LLD (Low Level Design)
Draw a flow graph for that program.
Calculate cyclomatic complexity.
Runt that program more than one time to cover all executable areas.

One should run the above program 2 times to cover all executable
areas. A programmer gets confidence that a program is running only when the
cyclomatic complexity is reached in running the programs designed.
NOTE: The above program should be run 2 times
° One time to check whether if condition is satisfied or not
° Next time to check whether the else condition is satisfied or
not, without any runtime errors.
After completion of design & their reviews, the programmers start coding.
In this phase, the programmers prepare programs & then test each program using
White Box Testing Techniques.
There are 4 White Box Testing Techniques:
1.Basis Path Testing
2.Control Structure testing
3.Program technique Testing
4.Mutation Testing
These Techniques are applicable only for Programs.
1.Basis Path Testing:
During this test the programmers concentrate on the execution of
programs without any runtime errors. To conduct this test, the corresponding
programmer follows the below approach.
Write a program with respect to LLD (Low Level Design)
Draw a flow graph for that program.
Calculate cyclomatic complexity.
Runt that program more than one time to cover all executable areas.
One should run the above program 2 times to cover all executable
areas. A programmer gets confidence that a program is running only when the
cyclomatic complexity is reached in running the programs designed.
NOTE: The above program should be run 2 times
° One time to check whether if condition is satisfied or not
° Next time to check whether the else condition is satisfied or
not, without any runtime errors.
Comments
Post a Comment