- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 222字
- 2021-06-24 18:31:44
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.
推薦閱讀
- Visual C++程序設(shè)計(jì)教程
- JavaScript從入門到精通(微視頻精編版)
- Unity 2020 Mobile Game Development
- Instant Zepto.js
- Three.js開發(fā)指南:基于WebGL和HTML5在網(wǎng)頁上渲染3D圖形和動(dòng)畫(原書第3版)
- 新手學(xué)Visual C# 2008程序設(shè)計(jì)
- TypeScript圖形渲染實(shí)戰(zhàn):基于WebGL的3D架構(gòu)與實(shí)現(xiàn)
- Scala程序員面試算法寶典
- Webpack實(shí)戰(zhàn):入門、進(jìn)階與調(diào)優(yōu)
- UNIX Linux程序設(shè)計(jì)教程
- Visualforce Developer’s guide
- R數(shù)據(jù)科學(xué)實(shí)戰(zhàn):工具詳解與案例分析
- Learning Android Application Testing
- Java程序設(shè)計(jì)(項(xiàng)目教學(xué)版)
- CISSP in 21 Days(Second Edition)