知识卡片
端到端边界取决于目标
自动化端到端测试应优先运行目标链路中的真实服务,但测试边界要由验证目标决定。域外第三方可使用桩,未参与场景的系统无需启动。边界收缩应写进测试说明,否则“端到端”名称会掩盖实际未覆盖的故障路径。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
For end-to-end testing it is ideal is to have real versions of your services running and interacting together; however, sometimes this is not always feasible. Therefore, it is okay to stub out some entities of a system that are outside your organization’s domain and are provided by an external party. A hypothetical case would be if the Attendee service required the use of AWS S3.
参考来源
- 位置:《Mastering API Architecture》第2章《Testing APIs》之《Automating End-to-End Validation》(源文件:_epub-src/OEBPS/ch02.xhtml)
- 结论依据:原文允许模拟域外第三方,并指出不使用的实体无需出现在测试中,进而强调端到端测试存在边界。
- 原始内容:For end-to-end testing it is ideal is to have real versions of your services running and interacting together; however, sometimes this is not always feasible. Therefore, it is okay to stub out some entities of a system that are outside your organization’s domain and are provided by an external party. A hypothetical case would be if the Attendee service required the use of AWS S3 .