Practice
AI Testing for QA Engineers
Learn to test AI products with 99 hands-on assignments, from your first prompt-injection test to a full release gate. Write real evals in Python, catch wrong answers, leaks and unsafe agent actions, and get graded against practice bots. No API key or GPU needed.
- 99 lessons
- 16 modules
- Beginner to Advanced
- Lessons 1 to 12 free
Keep your progress
Signed-in learners keep solved lessons and a leaderboard rank. Lessons also work without an account.
Sign in to save progressWhy exact match fails on AI
7 lessonsBeginner
Why exact match fails on AI
7 lessonsBeginnerPython and LLM APIs bridge
3 lessonsBeginner
Python and LLM APIs bridge
3 lessonsBeginnerA deterministic harness
7 lessonsBeginner
A deterministic harness
7 lessonsBeginnerRead before you measure
6 lessonsBeginner to Intermediate
Read before you measure
6 lessonsBeginner to IntermediateWorking with an AI assistant as a tester
4 lessonsIntermediate
Working with an AI assistant as a tester
4 lessonsIntermediateReviewing AI-written tests
5 lessonsIntermediate
Reviewing AI-written tests
5 lessonsIntermediateAgents in the browser: Playwright MCP and test agents
5 lessonsIntermediate
Agents in the browser: Playwright MCP and test agents
5 lessonsIntermediateDatasets
3 lessonsIntermediate
Datasets
3 lessonsIntermediateStatistics for testers
6 lessonsIntermediate
Statistics for testers
6 lessonsIntermediateJudges and guardrails as classifiers
7 lessonsIntermediate
Judges and guardrails as classifiers
7 lessonsIntermediateTesting RAG and hallucination
8 lessonsIntermediate to Advanced
Testing RAG and hallucination
8 lessonsIntermediate to AdvancedTesting agents, chat UIs and extractors
8 lessonsAdvanced
Testing agents, chat UIs and extractors
8 lessonsAdvancedSecurity, safety and evidence
9 lessonsAdvanced
Security, safety and evidence
9 lessonsAdvanced- Four questions for any AI feature
- Indirect injection through a document
- Exfiltration through rendered output
- Excessive agency: hold the limit at the API layer
- PII in output and logs
- Scanner triage with a curated garak run
- Review a system prompt as a spec
- Unseen attacks, then a regression test
- Bias checks and an evidence table
Release, production and operations
10 lessonsAdvanced
Release, production and operations
10 lessonsAdvancedFrameworks and other languages
3 lessonsAdvanced
Frameworks and other languages
3 lessonsAdvancedCareer, capstones and the Cold Product Test
8 lessonsAdvanced
Career, capstones and the Cold Product Test
8 lessonsAdvancedAbout this course
AI Testing for QA Engineers
What is AI testing?
AI testing means testing products built on large language models (LLMs): support chatbots, search that answers from documents (RAG), and agents that take actions such as refunds. Their answers change from one run to the next, so the exact-match assertions QA engineers rely on break on correct replies and still miss real faults.
Testing them well means checking the facts and properties every correct reply must have, measuring pass rates with evals instead of trusting one run, checking LLM judges against human labels, and probing for prompt injection, data leaks and unsafe agent actions.
What does an AI QA engineer do?
An AI QA engineer tests the AI features of a product, with the same aim as any tester: find what is broken before customers do, and give the team evidence it can act on. The work looks like this:
- Build golden sets and eval harnesses that run on every change, and report failures by kind.
- Read traces to find the first step that went wrong: understanding, retrieval, a tool call or the answer.
- Check that an LLM judge agrees with people before trusting its numbers, and tell a real regression from noise.
- Test RAG retrieval and grounding, agent tool calls and outcomes, chat windows and extractors.
- Red-team for prompt injection, data leaks and excessive agency, and record the evidence.
- Run release gates in CI, and review tests that AI coding assistants write.
Each of these has graded lessons in this course.
Who this course is for
- Manual testers who want to move into AI testing and learn just enough Python on the way.
- Automation engineers and SDETs (Selenium, Playwright, REST Assured) who have been asked to test an AI feature.
- QA leads who need a test approach, release gates and a budget for an AI product.
You need testing basics. Python basics are taught in lessons 8 to 10. You do not need machine learning, maths beyond school level, an API key or a paid AI model.
What you will learn: 16 modules
- 01Why exact match fails on AI. Non-deterministic replies, repeats, prompt injection and ordinary software faults.
- 02Python and LLM APIs. JSON parsing, the OpenAI Python SDK with timeouts and retries, pytest parametrize and fixtures.
- 03A deterministic harness. Schema, property, API and metamorphic tests, a small eval harness, and running it on a real model.
- 04Read before you measure. Traces, error analysis, failure taxonomies and a one-page test approach.
- 05Working with an AI assistant. Prompts and AGENTS.md files that make generated tests catch bugs.
- 06Reviewing AI-written tests. Escapes, weak assertions, mirror tests, mutation testing and self-healing diffs.
- 07Playwright MCP and test agents. What a browser agent sees, MCP or CLI, and reviewing an agent's run.
- 08Datasets. Golden sets, auditing stale answers and drift from real traffic.
- 09Statistics for testers. Pass-rate intervals, noise floors, regressions, sample size, pass@k and pass^k.
- 10Judges and guardrails. Binary rubrics, TPR and TNR, precision and recall, Cohen's kappa and judge drift.
- 11Testing RAG and hallucination. Retrieval metrics, embeddings, grounding, abstention and a real-model failure hunt.
- 12Testing agents, chat UIs and extractors. Outcomes, tool calls, loops, multi-turn replays, MCP contract tests and field scoring.
- 13Security, safety and evidence. Indirect injection, exfiltration, excessive agency, PII masking, scanner triage and bias checks.
- 14Release and operations. Run manifests, gate scripts, CI tiers, model upgrades, load tests, traces and production sampling.
- 15Frameworks and other languages. DeepEval, Promptfoo, and porting the harness to Java or JavaScript.
- 16Career and capstones. Job posts, CV, interview questions, three capstones and the Cold Product Test.
How the course works
- Each lesson gives you a practice product with faults planted in it: a refund chatbot, an HR policy bot that answers from documents, an order agent that issues refunds, an online store and more.
- You write tests, answers or reports in the browser. On submit they are graded against hidden correct and faulty versions of the product: core checks earn 50 points and harder checks the other 50.
- Every lesson starts with a plain-language summary of the idea and says how each answer is checked. Written answers come with a model answer to compare once you submit.
- Lessons 1 to 12 are free with a free account. CodeKru Pro opens the rest and adds a course certificate when you finish.
Questions people ask
Is this AI testing course free?
Lessons 1 to 12 are free with a free CodeKru account: the first two modules and the start of the eval harness module. CodeKru Pro opens all 99 lessons and the course certificate. It is one payment and nothing renews.
Do I need to know machine learning or Python?
No machine learning is needed. The course teaches the Python you use (JSON, the OpenAI SDK and pytest) in lessons 8 to 10, and later lessons explain each statistic before you use it. If you work in Java or JavaScript, lesson 91 ports the eval harness to JUnit with REST Assured or to Playwright Test.
Do I need an API key or a paid AI model?
No. The practice bots and your code both run on CodeKru's servers; you only need a browser. A few lessons compare the practice bot with a real model through CodeKru, at no cost to you.
What tools does the course cover?
Python with pytest, the OpenAI Python SDK, JSON Schema, DeepEval, Promptfoo, Playwright, Playwright MCP, SQL, GitHub Actions, trace exports from LangSmith and Langfuse, a curated garak scan, and JUnit with REST Assured.
Is this about testing AI, or using AI to test?
Mostly testing AI products: chatbots, RAG and agents. Two modules also cover using AI coding assistants to write tests and reviewing the tests they write, because most testers now do both.
How long does the course take?
About 70 hours of hands-on work across 99 lessons. Most lessons take 15 to 60 minutes; the capstones and the Cold Product Test take longer. You can stop and come back at any point, and your work is saved.
Will this help me prepare for AI QA engineer interviews?
The last module covers reading AI testing job posts, writing CV lines with evidence, the questions interviewers keep asking, three capstone projects and a take-home style Cold Product Test. It is practice evidence for interviews, not a job guarantee.