test-scenarios
phuryn/pm-skills
ユーザーストーリーから、テスト目的、開始条件、ユーザーロール、手順ごとのアクション、および期待される結果を盛り込んだ包括的なテストシナリオを作成します。
...すべて拡張しますテストシナリオ
ユーザーストーリーから、テスト目的、開始条件、ユーザーロール、段階的なテスト操作、および期待される結果を含む包括的なテストシナリオを作成します。
使用場面:QAテストケースの作成、テスト計画の策定、受入テストシナリオの定義、またはユーザーストーリーの実装の検証。
引数:
$PRODUCT: 製品またはシステム名$USER_STORY: テスト対象のユーザーストーリー(タイトルおよび受け入れ基準)$CONTEXT: 追加のテストコンテキストまたは制約
手順
- ユーザーストーリーと受け入れ基準を確認する
- テスト目的を定義する — 検証すべき具体的な動作
- 開始条件を確立する — システムの状態、データの設定、構成
- ユーザーロールの特定 — 誰がテスト操作を実行するか
- テスト手順の作成 — 操作を段階的に分解する
- 期待される結果を定義する - 各ステップ後の観察可能な結果
- エッジケースの検討 - 無効な入力、境界条件
- 詳細なテストシナリオを作成する - QAによる実行準備完了
シナリオテンプレート
テストシナリオ:[シナリオ名]
テスト目的:[このテストで検証する内容]
開始条件:
- [必要なシステムの状態]
- [必要なデータまたは設定]
- [ユーザーの設定または権限]
ユーザーロール:[テストを実施する担当者]
テスト手順:
- [最初の操作とその期待される結果]
- [2番目の操作と確認可能な結果]
- [3番目の操作とシステムの挙動]
- [完了操作と最終状態]
期待される結果:
- [観察可能な結果 1]
- [観測可能な結果 2]
- [観察可能な結果 3]
テストシナリオの例
テストシナリオ:商品ページで「最近閲覧した商品」を表示する
テスト目的:「最近閲覧した商品」セクションが正しく表示され、現在表示中の商品が除外されていることを確認する。
開始時の条件:
- ユーザーがログインしているか、ブラウザの閲覧履歴が有効になっている
- ユーザーが現在のセッションで少なくとも2つの商品を閲覧している
- ユーザーが、以前に閲覧した商品とは異なる商品ページにアクセスしている
ユーザーロール:オンラインショッパー
テスト手順:
- 任意の商品ページに移動する → ページ下部に、以前に閲覧した商品が表示されるセクションが表示される
- ページの下部までスクロールする → 「最近閲覧した商品」セクションに商品カードが表示される
- 商品のサムネイルを確認 → 画像、タイトル、価格が正しく表示されている
- 現在表示中の商品をチェック → 現在表示中の商品は「最近閲覧した商品」リストに含まれていない
- 商品カードをクリックする → ユーザーは対応する商品ページに移動する
期待される結果:
- 「最近閲覧した商品」セクションは、少なくとも1つの商品を閲覧した後にのみ表示される
- このセクションには、完全な情報を含む4~8枚の商品カードが表示される
- 現在表示中の商品はリストから除外される
- 各カードには「X分/時間前に閲覧」というタイムスタンプが表示される
- カードをクリックすると、該当する商品ページに移動する
- パフォーマンス:セクションは2秒以内に読み込まれます
成果物
- 各受け入れ基準に対する包括的なテストシナリオ
- ユーザーストーリーの意図に沿った明確なテスト目的
- 詳細なステップバイステップのテスト手順
- 各ステップ後の確認可能な期待される結果
- エッジケースおよびエラーシナリオの網羅性
- QAチームによる実行および文書化の準備が整っている
---
name: test-scenarios
description: Create comprehensive test scenarios from user stories with test objectives, starting conditions, user roles, step-by-step actions, and expected outcomes.
---
# 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
1. **Review the user story** and acceptance criteria
2. **Define test objectives** - What specific behavior to validate
3. **Establish starting conditions** - System state, data setup, configurations
4. **Identify user roles** - Who performs the test actions
5. **Create test steps** - Break down interactions step-by-step
6. **Define expected outcomes** - Observable results after each step
7. **Consider edge cases** - Invalid inputs, boundary conditions
8. **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:**
1. [First action and its expected result]
2. [Second action and observable outcome]
3. [Third action and system behavior]
4. [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:**
1. Navigate to any product page → Section should appear at bottom with previously viewed items
2. Scroll to bottom of page → "Recently viewed" section is visible with product cards
3. Verify product thumbnails → Images, titles, and prices are displayed correctly
4. Check current product → Current product is NOT in the recently viewed list
5. 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
すべてのファイル
1件のファイルtest-scenariosをインストール
スキルファイルをダウンロードし、.claude/skills/ ディレクトリに解凍してください。
ZIPをダウンロードリポジトリをクローンし、スキルファイルをプロジェクトにコピーしてください。
git clone https://github.com/phuryn/pm-skills/tree/main/pm-execution/skills/test-scenarios # Copy SKILL.md to your .claude/skills/ directory
コピー





家
