Professional Documents
Culture Documents
4485-1685097803902-Unit - 7.9 - Testing and Documentation
4485-1685097803902-Unit - 7.9 - Testing and Documentation
1
Unit Testing
The lowest level, unit testing involves testing each module of
a program in isolation. Unit test is the most micro scale of
testing that is testing of the function of a component typically
is done by the programmer and not by tasters, as it requires
detailed knowledge of the internal program design and code
2
Black Box Testing
In this approach the program is assumed to be a black box where the processing logic unit
cannot be seen. This means that what is happening inside the program is not important to the
person who is carrying out the testing. The tester is worried about the output that the program
producers Therefore, the aim of testing is to check whether the program producers the correct
output for every single input.
Test data are selected based on the program specification and not based on the logic of the
program. Therefore, some of the logical pathway may be missed with the chosen test data.
3
White Box Testing
Here the program is assumed to be a transparent box where the logic in it is seen by the
tester, that means the processing logic is considered important in this method there for
testing is carried out to check whether the inputs are driven correctly by the logic and as a
result correct outputs are obtained
Test data are selected based on the logic. or the program to test each and every possible
logical pathway.
4
System Testing
Testing in such an environment involves not only testing each individual program but also
testing the flow of data through the system as a whole.
Essentially this is only a larger version of the procedure used in testing a single program
because we are still testing a number of modules (in this case each is a program), the
sequence in which they operate and the communication of data between them.
5
Test Plan
It is important that any test must be fully described before they are carried out. Anyone carrying
out a test without describing the expected outcome is not testing but experimenting.
The description should include:
The expected outcome (new values of global variable, new file status etc.)
6
Documentation
All Programs should be adequately documented to facilitate the usage & the
future maintenance of the Program.
Programmers
Users
7
Documentation for Programmers
Internal Documentation
External Documentation
8
Documentation - Programmers
Internal Documentation
9
Documentation - Programmers
External Documentation
10
Documentation for Users
As in the case of operators, users are concerned more
with more they interact with the program what the
program does for them than with the technicalities of how
the program goes about its tasks
11
Documentation for Users
The user’s manual should cover:
12
Lesson Summary
Unit Testing
Black box vs White box Testing
System Testing
Test Plan
Documentation for Programmers
Documentation for Users
13