Page 125 - SOFTWARE TESTING & QUALITY ASSURANCE
P. 125
Software Testing and Quality Assurance
Figure 8.6 depicts a form from Google's Web site. It is a sign up form for creating a Google account. This
form asks you to enter your first name, last name, desired login name, and password.
Figure 8.6: Google’s Form
Source::
(https://www.google.com/accounts/NewAccount?service=mail&continue=http://mail.google.com/mail/e-11-
33ebf0ccb45412d145020cfbceb912-232e4049696fabc678becf3aa3a94284d5a9048e&type=2)
When the user enters all the required information and submits, the user should obtain the login
information to proceed further.
When we use a bank’s Web site for online transaction, it asks for some details. Which
among those details can be considered as test cases for black box testing?
8.3 White Box Testing and Gray Box Testing
White box testing is a testing technique in which a tester should know the internal design/working of
the system being tested. Gray box testing is a mix combination of black box and white box testing
systems.
Now let us discuss white box and gray box testing individually.
White Box Testing
White box testing requires a tester to know the internal working of the system being tested. White box
testing uses specific knowledge of the programming code to test the outputs, where as in black box
testing there is no need to know the internal working of the system. White box testing becomes
successful and effective only if the tester has prior knowledge of the output expected from the system.
The tester can then verify if the system deviates from its intended goal.
118 LOVELY PROFESSIONAL UNIVERSITY