知识卡片
端到端场景优先核心旅程
场景型端到端测试应覆盖最重要的用户旅程,可以是单个动作,也可以是连续动作及其最终状态。边界情况和异常路径可交给成本更低的层级测试,避免昂贵且脆弱的端到端用例膨胀。无自动化条件时,保留可重复执行的发布前手工测试清单。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
A scenario test can be based around a single action or multiple actions. It is important that you are only testing core user journeys and not testing edge cases or exception testing. To help you write your tests, you can use Behavior Driven Development (BDD). This is a nice way to write your user stories as part of your business-facing tests.
参考来源
- 位置:《Mastering API Architecture》第2章《Testing APIs》之《Types of End-to-End Tests》《ADR Guideline: End-to-End Testing》(源文件:_epub-src/OEBPS/ch02.xhtml)
- 结论依据:原文要求场景测试聚焦核心用户旅程,ADR 指南建议至少覆盖核心旅程,并在无法自动化时使用手工 run book。
- 原始内容:A scenario test can be based around a single action or multiple actions. It is important that you are only testing core user journeys and not testing edge cases or exception testing. To help you write your tests, you can use Behavior Driven Development (BDD) . This is a nice way to write your user stories as part of your business-facing tests.