V2EX  ›  英汉词典

Test Case

释义 Definition

(软件测试/质量保证中)测试用例:为验证某个功能或行为是否符合预期而编写的具体测试条目,通常包含前提条件、步骤、输入数据、预期结果等。也可泛指用于检验某个想法或规则的“例子/案例”。

发音 Pronunciation (IPA)

/ˈtɛst keɪs/

例句 Examples

This is a test case for the login page.
这是一个用于登录页面的测试用例。

The team wrote a detailed test case that checked edge conditions and verified the error messages.
团队编写了一个详细的测试用例,用来检查边界情况并验证错误提示信息。

词源 Etymology

test 源自拉丁语 testum(“陶器、容器”),后来引申为“检验、试验”;case 源自拉丁语 casus(“发生的事情、情形”)。合在一起 test case 字面可理解为“用于检验的情形/案例”,在软件工程语境中固定为“测试用例”。

相关词 Related Words

文学与著作 Literary Works

  • The Art of Software Testing(Glenford J. Myers 等):书中频繁讨论如何设计与评审 test case
  • Clean Code(Robert C. Martin):在测试与重构章节中提到编写清晰的 test case 以支撑代码质量。
  • Testing Computer Software(Cem Kaner 等):以大量示例说明 test case 的设计方法与缺陷发现策略。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   848 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 6ms · UTC 23:34 · PVG 07:34 · LAX 15:34 · JFK 18:34
♥ Do have faith in what you're doing.