Testing - What are white-box, black-box and gray-box testing?

What are white-box, black-box and gray-box testing?

White Box (or glass box) testing is the process of giving i/p to the system and checking how the system processes i/p to generate o/p

- It refers to the testing a system with full knowledge and access to all source code and other architecture documents. This testing enables to reveal bugs and vulnerabilities quickly in comparison with trial and error method. More complete testing coverage is ensured by exactly knowing what to test.

- White box testing involves thorough testing of the application. It requires knowledge of code and the test cases chosen verifies if the system is implemented as expected. It typically includes checking with the data flow, exceptions, and errors, how they are handled, comparing if the code produces the expected results.

E.g. In electrical appliances the internal circuit testing.

- The team tests the internal logics of the code. The code for the application is tested. It is also known as the glass box testing.

Black Box testing is the process of giving i/p to the system and checking the o/p of the system without bothering how the o/p is generated.

- It refers to testing a system without knowledge of specification to the internal workings of the system, access to the source code, and knowledge of the architecture. Essentially this approach mimics in a close approach, how an attacker typically follows approach to the application. However, the uncovering of issues or vulnerabilities could be further longer , because of lacking internal application knowledge.

- Black box testing is done at an outer level of the system. Test cases merely check if the output is correct for the given input. User is not expected to the internal flow or design of the system.

- The team tests the system without any knowledge of how the system is being made. The functionalities are checked here. Here the application is tested.

Gray Box testing is a combination of White Box and Glass Box Testing. In this, the tester has little knowledge about the internal working of the s/w; so he tests the o/p as well as process carried out to generate the o/p.

- It refers to a testing system by knowing limited information about the internals of the system. The knowledge is always limited for detailed design documents and architecture diagrams. In concise, it is a good blend of black and white box testing, which leverage the strengths of each.

- Gray box testing is a combination of both black box and white box testing. This is because it involves access to the system; however, at an outer level. A little knowledge of the system is expected in Gray box testing.

- Both white box and black box combined are known as gray box testing.
Testing - Difference between Latent and Masked Defect
Difference between Latent and Masked Defect - Latent defects are defects which remain in the system, however, identified later. They remain in the system for a long time..........
Testing - What is Big-bang waterfall model?
What is Big-bang waterfall model? - The waterfall model is also known as the Big-bang model because all modules using waterfall module follows the cycle independently and then put together.
Testing - What is configuration Management?
What is configuration Management? - Configuration management aims to establish consistency in an enterprise........
Post your comment
Discussion Board
software engineering
really helpful
anjali 06-23-2017