0/5 lessons marked done · Progress is saved in this browser only. No account, nothing is sent to a server.
In review. The curriculum, module overviews and Levels 1–3 lessons are drafts written with AI assistance and reviewed by AI. Human review is still pending. English translation: AI-assisted, not human-reviewed.
Levels 1–3 lessons, exercises and quizzes are published as drafts, in Vietnamese with an AI-assisted English translation. They may change after human review.
What you build: Refusal test set with expected behaviour per policy
Needs: L1-M04-L04
Key terms (7)
Over-refusal / exaggerated safetyTừ chối quá mức
Under-refusalTừ chối thiếu
Contrast pairCặp đối chứng
Refusal setBộ case kiểm tra hành vi từ chối
Counterfactual testingTest đổi một thuộc tính
BiasThiên lệch
HandoffChuyển nhân viên
A. Module overview
Field
Value
Module ID
L1-M04
Level
1 - AI QA Engineer
Description
Functional and negative testing for an AI assistant: choosing oracles; boundary input and Vietnamese Unicode; session-based exploratory testing; direct and indirect prompt injection, mapped to OWASP LLM01/LLM07; refusal behavior and counterfactual testing. The product under test is ShopEasy Assistant (fictional, rule-based simulation), running offline.
Why this module matters
Negative and injection testing is what product teams most often skip, and it has the biggest consequences when it goes wrong: data leaks, phishing links, abandoning customers who need help.
Target professional competencies
Level 1: "Negative, boundary and injection testing", "Risk-based test design", "Report AI defects".
Estimated duration
5 lessons (165 + 195 + 165 + 195 + 195 minutes) ≈ 15 hours + module assignment ~16 hours + quiz 0.5 hours ≈ 32 hours for someone new to Python. Estimate, not yet measured with real learners.
Prerequisites
L1-M01, L1-M02, L1-M03. No API key needed.
Module output
Functional and negative test pack for ShopEasy Assistant v2, including injection cases mapped to OWASP
Cost
0 VND
B. Learning objectives
ID
Objective
MO1
Choose and verify an oracle (exact, rule, reference, human) for each contract clause.
MO2
Design a boundary pack using equivalence partitioning, boundary values and Unicode normalization.
MO3
Run and report a charter-based exploratory testing session.
MO4
Design prompt injection cases by technique, map them to OWASP, and check consequences.
MO5
Measure over-refusal and under-refusal, and apply counterfactual testing.
direct/indirect, canary, consequence-based oracle, defense in depth
Injection cases mapped to OWASP
L1-M04-L05
Refusal, safety and bias
195'
L04
over-/under-refusal, control pairs, counterfactual
Refusal set + two rates
D. Hands-on assignment (module assignment)
Functional and negative test pack for ShopEasy Assistant v2 (fictional). The team says v2 has fixed the bugs of
v1. The learner verifies that against contract C1-C12, finds new defects, and reports them. Details in
exercises.md.
E. Module assessment
Component
Weight
Content
Knowledge quiz
20%
quiz.md: 12 questions, 20 points
Practical assignment
40%
Rubric: Test design + Implementation
Applied QA analysis
20%
Rubric: Oracle matrix + Defect analysis
Review/reflection
20%
Rubric: Reporting + Reflection
Formula: module score = 0.2 × quiz% + 0.8 × assignment rubric score (out of 100). Pass conditions: quiz ≥
70% and every mandatory acceptance criterion and total ≥ 70%.