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

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.
主站蜘蛛池模板: 灌云县| 林西县| 怀仁县| 县级市| 泰来县| 宁蒗| 简阳市| 池州市| 九寨沟县| 延吉市| 永寿县| 汨罗市| 楚雄市| 区。| 阿拉善盟| 班玛县| 林甸县| 江永县| 麻城市| 高安市| 台州市| 新干县| 东莞市| 息烽县| 渝北区| 蒙自县| 新兴县| 宁乡县| 五常市| 六枝特区| 隆子县| 怀化市| 张北县| 思茅市| 凌云县| 右玉县| 湘乡市| 宽城| 凤庆县| 虎林市| 高平市|