test-scenarios
它能做什么
这项技能把用户故事转化为测试人员可以逐步执行的详细测试用例。适合检查功能是否正常的 QA 测试人员、开发者和产品团队。
适用场景
- ✓当你有一个用户故事,需要测试用例来验证它的时候。
- ✓当你正在为新功能准备测试计划的时候。
- ✓当你希望在测试开始前覆盖边界情况和无效输入的时候。
技能链接
https://github.com/phuryn/pm-skills/blob/main/pm-execution/skills/test-scenarios/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请根据这个用户故事编写测试场景,方便我们的 QA 团队检查登录功能。”
每周 5 个新技能,1 分钟读完。
工作原理
你的智能体阅读故事和验收标准,设定起始条件,写出每个步骤及其预期结果,并补充边界情况。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Test Scenarios
Create comprehensive test scenarios from user stories with test objectives, starting conditions, user roles, step-by-step test actions, and expected outcomes.
Use when: Writing QA test cases, creating test plans, defining acceptance test scenarios, or validating user story implementations.
Arguments:
$PRODUCT: The product or system name$USER_STORY: The user story to test (title and acceptance criteria)$CONTEXT: Additional testing context or constraints
Step-by-Step Process
- Review the user story and acceptance criteria
- Define test objectives - What specific behavior to validate
- Establish starting conditions - System state, data setup, configurations
- Identify user roles - Who performs the test actions
- Create test steps - Break down interactions step-by-step
- Define expected outcomes - Observable results after each step
- Consider edge cases - Invalid inputs, boundary conditions
- Output detailed test scenarios - Ready for QA execution
Scenario Template
Test Scenario: [Clear scenario name]
Test Objective: [What this test validates]
Starting Conditions:
- [System state required]
- [Data or configuration needed]
- [User setup or permissions]
User Role: [Who performs the test]
Test Steps:
- [First action and its expected result]
- [Second action and observable outcome]
- [Third action and system behavior]
- [Completion action and final state]
Expected Outcomes:
- [Observable result 1]
- [Observable result 2]
- [Observable result 3]
Example Test Scenario
Test Scenario: View Recently Viewed Products on Product Page
Test Objective: Verify that the 'Recently viewed' section displays correctly and excludes the current product.
Starting Conditions:
- User is logged in or has browser history enabled
- User has viewed at least 2 products in the current session
- User is now on a product page different from previously viewed items
User Role: Online Shopper
Test Steps:
- Navigate to any product page → Section should appear at bottom with previously viewed items
- Scroll to bottom of page → "Recently viewed" section is visible with product cards
- Verify product thumbnails → Images, titles, and prices are displayed correctly
- Check current product → Current product is NOT in the recently viewed list
- Click on a product card → User navigates to the corresponding product page
Expected Outcomes:
- Recently viewed section appears only after viewing at least 1 prior product
- Section displays 4-8 product cards with complete information
- Current product is excluded from the list
- Each card shows "Viewed X minutes/hours ago" timestamp
- Clicking cards navigates to correct product pages
- Performance: Section loads within 2 seconds
Output Deliverables
- Comprehensive test scenarios for each acceptance criterion
- Clear test objectives aligned with user story intent
- Detailed step-by-step test actions
- Observable expected outcomes after each step
- Edge case and error scenario coverage
- Ready for QA team execution and documentation
常见问题
每个测试场景包含什么?
它包含测试目标、起始条件、用户角色、步骤,以及每一步之后的预期结果。
它也涵盖不常见的情况吗?
涵盖。该技能要求智能体考虑无效输入和边界条件。
我需要提供什么?
请分享用户故事及其验收标准,以及关于产品或测试限制的任何说明。
详情
作者的原始描述
Create comprehensive test scenarios from user stories with test objectives, starting conditions, user roles, step-by-step actions, and expected outcomes. Use when writing QA test cases, creating test plans, defining acceptance tests, or preparing for feature validation.
repo: phuryn/pm-skills
热度
- GitHub 星标
- 28k
- 排名
- #9892
- 许可证
- MIT
- 更新时间
- 2026/10/29
评论
- …
同一仓库的更多技能
ab-test-analysis
28k帮你的智能体解读 A/B 测试结果,检查统计显著性和样本量,并建议某个变体是上线、延长测试还是停止。
cohort-analysis
28k帮你的智能体按同期群分析用户留存,展示每组用户的参与度和功能采用率随时间的变化。
sql-queries
28k帮你的智能体把用自然语言描述的业务问题,转换为 PostgreSQL、MySQL 或 BigQuery 等数据库的 SQL 查询。
brainstorm-okrs
28k帮你的智能体起草团队的 OKR,包括定性的目标和与公司目标一致、可衡量的关键结果。