📜  黑盒测试与白盒 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:50.328000             🧑  作者: Mango

代码示例2
BlackBox Testing:
When the tester does not know the code
behind the functionality, it is called
black box testing.
 Testers do not need that code in order to
 test the functionality. This is mostly what we as testers do.
 
On the other hand white box testing 
When the tester knows the code behind
functionality and uses that knowledge for testing
purposes, it is called white box testing.
Unit test is considered as white box testing.