一键导入
activity-e2e-test-design
Generate end-to-end black-box test scenarios from a spec or user stories. Use when deriving E2E compliance scenarios.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate end-to-end black-box test scenarios from a spec or user stories. Use when deriving E2E compliance scenarios.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Read and write architectural decisions to the shared memo-cli knowledge base. Use when recording or restoring cross-session context.
Break a technical specification into user stories with coverage validation. Use after generate-spec.
Establish product-context.md and technical-guidelines.md foundation docs. Use in product-engineer Init Mode.
Publish user stories as GitHub Issues following github-ops conventions. Use after generate-stories.
Clarify scope: produce a lightweight issue refinement or a full PRD. Use in product-engineer Feature or Issue Mode.
Execute a task list step-by-step with strict sequencing, branch/PR discipline, GitHub Issue sync, and user approval gates. Single source of truth for implementation. Use when implementing from a tasks-*.md file.
| name | activity-e2e-test-design |
| description | Generate end-to-end black-box test scenarios from a spec or user stories. Use when deriving E2E compliance scenarios. |
Generate end-to-end black-box test scenarios from a complete specification or a single user story. Produces executable scenario descriptions tied to acceptance criteria, covering happy paths, negative paths, and abuse cases. Invoked by the black-box-tester agent in Design Mode.
RFC 2119 Notice: The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL in this document are to be interpreted as described in RFC 2119.
Derive a comprehensive set of end-to-end black-box test scenarios from requirements. Every acceptance criterion (AC) MUST be covered by at least one positive (happy-path) scenario and at least one negative or edge-case scenario.
This activity assumes:
black-box-tester).black-box-tester.critical, major, or minor based on business impact.Each scenario MUST follow this structure:
### SC-{id}: {Scenario Title}
| Field | Value |
| ------------------- | --------------------------------------- |
| **AC(s)** | AC-{n}, AC-{m} |
| **Type** | happy-path / negative-path / abuse-case |
| **Severity** | critical / major / minor |
| **Preconditions** | {State required before execution} |
| **Steps** | 1. {Step} 2. {Step} … |
| **Expected Result** | {Observable outcome from the outside} |
| **Pass Criteria** | {Unambiguous condition for pass} |
Given a user story:
As a user, I want to log in with my email and password so that I can access my dashboard.
AC-1: User with valid credentials is redirected to the dashboard. AC-2: User with invalid credentials sees an error message. AC-3: Account is locked after 5 consecutive failed attempts.
| Field | Value |
|---|---|
| AC(s) | AC-1 |
| Type | happy-path |
| Severity | critical |
| Preconditions | User account exists and is active. |
| Steps | 1. Navigate to /login. 2. Enter valid email and password. 3. Submit the form. |
| Expected Result | User is redirected to /dashboard. Session is established. |
| Pass Criteria | HTTP 302 redirect to /dashboard. Auth cookie present. |
| Field | Value |
|---|---|
| AC(s) | AC-2 |
| Type | negative-path |
| Severity | critical |
| Preconditions | User account exists and is active. |
| Steps | 1. Navigate to /login. 2. Enter valid email and wrong password. 3. Submit the form. |
| Expected Result | Login page displays "Invalid email or password" error. |
| Pass Criteria | HTTP 401. Error message displayed. No session created. |
| Field | Value |
|---|---|
| AC(s) | AC-3 |
| Type | negative-path |
| Severity | major |
| Preconditions | User account exists. Failed attempt counter is at 0. |
| Steps | 1. Submit login with wrong password 5 times consecutively. 2. Attempt login with correct password. |
| Expected Result | After 5th failure, account is locked. 6th attempt (even with correct password) returns "Account locked" message. |
| Pass Criteria | HTTP 423 on 6th attempt. Lock message displayed. |
| Field | Value |
|---|---|
| AC(s) | AC-1, AC-2 |
| Type | abuse-case |
| Severity | critical |
| Preconditions | Login page accessible. |
| Steps | 1. Enter ' OR 1=1 -- as email. 2. Enter any password. 3. Submit. |
| Expected Result | Login fails with "Invalid email or password". No data leak. |
| Pass Criteria | HTTP 401. No SQL error exposed. No authentication bypass. |
This skill returns a list of scenarios in the template format above. The calling agent (black-box-tester) assembles them into the E2E section of the test plan.