官术网_书友最值得收藏!

White-box testing

White-box testing (also known as clear box testing, glass box testing, transparent box testing, and structural testing) looks inside the software that is being tested and uses that knowledge as part of the testing process. If, for example, an exception should be thrown under certain conditions, a test might want to reproduce those conditions. White-box testing requires internal knowledge of the system and programming skills. It provides an internal perspective on the software under test.

Some of the advantages of white-box testing are as follows:

  • It is efficient in finding errors and problems
  • Required knowledge of internals of the software under test is beneficial for thorough testing
  • It allows finding hidden errors
  • It encourages programmer's introspection
  • It helps in optimizing the code
  • Due to the required internal knowledge of the software, maximum coverage is obtained

Some of the disadvantages of white-box testing are as follows:

  • It might not find unimplemented or missing features
  • It requires high-level knowledge of internals of the software under test
  • It requires code access
  • Tests are often tightly coupled to the implementation details of the production code, causing unwanted test failures when the code is refactored

White-box testing is almost always automated and, in most cases, take the form of unit tests.


When white-box testing is done before the implementation, it takes the form of TDD.
主站蜘蛛池模板: 志丹县| 会昌县| 长治市| 兰西县| 安国市| 金秀| 宁乡县| 怀宁县| 藁城市| 通许县| 波密县| 望都县| 玉环县| 古丈县| 新营市| 肇州县| 海宁市| 阿荣旗| 大渡口区| 讷河市| 余庆县| 关岭| 馆陶县| 隆尧县| 宁河县| 宜兰县| 麻阳| 正定县| 西宁市| 祥云县| 赤水市| 房产| 乐都县| 临邑县| 衢州市| 通渭县| 洪湖市| 永修县| 无为县| 夏河县| 鄂伦春自治旗|