agentleFS
anhtesteranhtester/codex-testing-kit/.agents/skills/generate-manual-testcases-rbt/SKILL.md

generate-manual-testcases-rbt

Skill28 starsChanged 4 months agoMITView on GitHub

Sinh manual test cases chất lượng cao theo quy trình AI-RBT 6 bước (Risk-Based Testing) từ requirements.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Test Data phải cụ thể (không placeholder chung chung).

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

BẮT BUỘC (MANDATORY SKILL): Bạn PHẢI nạp và đọc kỹ nội dung của skill $rbt-manual-testing (tại .agents/skills/rbt-manual-testing/SKILL.md) trước khi bắt đầu thực hiện tác vụ này. Sử dụng Mode FULL RBT của skill. Ngoài ra, tham khảo thêm skill $requirements-analyzer để hiểu cách phân tích giao diện nếu cần.

Workflow: Sinh Manual Test Cases theo AI-RBT Framework (FULL RBT Mode)

Workflow này sử dụng Mode FULL RBT của skill $rbt-manual-testing — quy trình AI-RBT (AI-Driven Risk-Based Testing) gồm 6 bước tuần tự để sinh manual test cases từ tài liệu yêu cầu.

[!NOTE] Luồng này là một Codex skill. Thực hiện theo hướng dẫn trong skill, không cần đọc file prompt.txt. Nếu QA team muốn dùng prompt chi tiết hơn, hãy copy-paste tuần tự từ plans/manual/01_context_and_roleplay/prompt.txt đến plans/manual/06_template_mapping/prompt.txt.

⚠️ Nguyên tắc thực thi

  • Mode: FULL RBT (6 bước tuần tự)
  • BẮT BUỘC chạy tuần tự từng bước, KHÔNG gộp nhiều bước
  • PHẢI dừng lại chờ user phản hồi tại Bước 2 (Q&A) và Bước 4 (Review Scenarios)
  • Nếu user chưa cung cấp requirements, hỏi user cung cấp trước khi bắt đầu
  • Tất cả output bằng Tiếng Việt

Các bước thực hiện

Thực hiện theo hướng dẫn chi tiết trong skill $rbt-manual-testing → phần Mode 2: FULL RBT.

Bước 1: Khởi tạo ngữ cảnh (Context & Role-play)

  1. Yêu cầu user cung cấp: tên dự án, mô tả hệ thống, mục tiêu MVP, tài liệu yêu cầu
  2. Đọc kỹ tài liệu, xác nhận hiểu bối cảnh
  3. Chờ user xác nhận → sang Bước 2

Bước 2: Phân tích yêu cầu (Analysis & QnA)

  1. Xác định Happy Path, Alternate Paths, Exception Paths
  2. Phát hiện Ambiguities (thiếu sót, mâu thuẫn, chưa rõ ràng)
  3. Đặt câu hỏi Q&A có đánh số (Q1, Q2...) cho user/PO/BA, kèm ngữ cảnh + assumption
  4. DỪNG LẠI — Chờ user trả lời câu hỏi → sang Bước 3

Bước 3: Phân rã hệ thống (Decomposition)

  1. Chia tính năng thành Modules / Sub-modules
  2. Mô tả chức năng từng Module + Dependencies giữa chúng

Bước 4: Đảm bảo độ bao phủ (Traceability)

  1. Map Module → mã Yêu cầu (REQ-01, REQ-02...)
  2. Cross-check thiếu sót (Gap Analysis), liệt kê High-Level Scenarios
  3. Chờ user review scenarios → sang Bước 5

Bước 5: Sinh Test Case chi tiết (RBT & TC Generation)

  1. Đánh giá Risk Level (High/Medium/Low) cho mỗi Module.
  2. Sinh test cases đầy đủ: Title, Pre-condition, Steps, Expected, Test Data, Priority.
  3. Áp dụng kỹ thuật: EP, BVA, Decision Table, State Transition.
  4. Validation chuyên biệt từng trường (Field-Level Validation - 15 Field Types):
    • Liệt kê tất cả input fields trên form/UI đang test.
    • Sinh validation TCs riêng cho TỪNG trường (Text, Email, Phone, Date, Number, Dropdown, Checkbox/Radio, File Upload, Password, Textarea, OTP/MFA, Date Range, Rich Text, Multi-Select, Range Slider).
    • Tham chiếu Bảng Field-Level Validation Checklist trong skill $rbt-manual-testing.
    • KHÔNG gộp validation nhiều trường vào 1 TC.
  5. Bao phủ Scenarios Chuyên Sâu & Non-Functional:
    • Double Submit / Race Condition (click liên tiếp nút submit, concurrent edit).
    • Session & Network Resilience (session timeout mid-form, loss of network, slow 3G).
    • Localization & UTF-8 / Emoji (tiếng Việt có dấu, emoji, ký tự đa ngôn ngữ).
    • Keyboard Accessibility (Tab order, Enter/Space trigger, Focus state).
    • HTTP Status Codes (cho API TCs: 200, 400, 401, 403, 404, 409, 422, 429, 500/503).
  6. Test Data phải cụ thể (không placeholder chung chung).
  7. Nếu quá nhiều → sinh từng Module, hỏi user để tiếp tục.

Bước 6: Chuẩn hóa Format & Metadata (Template Mapping)

  1. Đóng gói toàn bộ test cases vào bảng Markdown chuẩn đầy đủ metadata cho Automation: | TC ID | Module | Risk Level | Test Title | Pre-Condition | Test Steps | Expected Result | Priority | Test Data | Automatable | Auto Type | Tags |
  2. Chạy Self-Quality Gate (5 tiêu chí): Unique TC ID, 1-to-1 Step-Expected matching, Concrete Test Data, Field Validation Coverage, và Automation Metadata Ready.
  3. Xuất dưới dạng Artifact (test_cases_<module>.md).

Output

  • Bảng Test Cases Markdown hoàn chỉnh kèm Automation Metadata (Automatable, Auto Type, Tags), sẵn sàng copy sang Excel/Jira/TestRail
  • Traceability Matrix
  • Danh sách Ambiguities đã giải quyết
  • Báo cáo Self-Quality Gate Verification

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.