TestamplifyQA Crew
← Workspace

BE THE QA TEAM · PREREQUISITES

Field glossary

Learn the terms behind the crew. Each entry explains when to use it and shows how it works in the lab.

Testing foundations

User story

A short description of a feature from the user's side: who, what, why.

When to use it
Before choosing what to test.
In the lab
Describe a shopper who wants to know whether a declined payment was saved as a paid order.
Shopper → wallet checkout → accurate order history

Acceptance criteria

The rules a story must meet to count as done.

When to use it
When teammates need to agree what success looks like.
In the lab
Write one observable rule. After a decline, the matching order must show Declined.
Declined payment → saved order must say Declined

Test case

One check: steps, input and the expected result.

When to use it
When translating one rule into a repeatable check.
In the lab
Start with one wallet, decline the payment once, then inspect that order’s status.
Given one wallet → decline once → check the saved row

Test plan

The list of test cases for a feature, ranked by risk.

When to use it
Before several checks compete for time.
In the lab
Rank the misleading Paid status first. Record the risk, the expected result and the evidence to collect.
STORY-2.md / Setup · Action · Expected · Evidence

Test script

A test case written as code, so a computer can run it.

When to use it
When a manual check needs to run again.
In the lab
Turn the decline steps into a Playwright spec and run it against both editions.
declined-wallet.spec.ts / Playwright executes the steps

Test suite

A group of test scripts run together.

When to use it
When a change could affect several behaviors.
In the lab
Run checkout, cart and history checks together. Read each failure before judging the build.
tests/ → runner → results.json

Assertion

The line in a test that checks a result and fails if it's wrong.

When to use it
When an action has finished and you need a verdict.
In the lab
Read the saved status and compare it with Declined. That comparison exposes the buggy edition.
Expected Declined / Received Paid

Locator

How a test finds an element on the page.

When to use it
When a script needs the right control or record.
In the lab
Find the order history table by its heading, then the row for this payment.
Order history → $19.99 row → Status cell

Seed test

A first, simple test that shows the setup and style other tests copy.

When to use it
Before generating more tests for the same app.
In the lab
Run one small example from a fresh browser. Give the Engineer its setup and locator conventions.
tests/seed.ts → fresh cart → one decline

Regression

Something that used to work and now doesn't.

When to use it
After fixing an issue or changing related code.
In the lab
Keep the declined-order check and rerun it whenever checkout changes.
Fix the status → keep the test → run on the next change

Flaky test

A test that passes and fails on the same code.

When to use it
When repeated runs disagree with identical inputs.
In the lab
Repeat in isolated browser contexts and inspect the traces before changing any expectation.
Same revision + same input → inconsistent result

Edge case

An input at or past a limit: zero, negative, the maximum.

When to use it
When a normal purchase already works.
In the lab
Try quantity zero, then minus one. Record whether the cart rejects each value.
Quantity 1 · 0 · −1

Race condition

A bug that shows up when two actions happen at almost the same moment.

When to use it
When two actions could update the same balance.
In the lab
Use the bank’s simultaneous-transfer exercise. Compare both results with the posted ledger.
Two $80 transfers / starting balance $100

Accessibility tree

The version of the page that screen readers use: each control's role and name.

When to use it
When a control looks correct but a user may struggle to find it.
In the lab
Inspect the Pay control’s role and accessible name in each edition.
Role button / Accessible name Pay

Defect (bug report)

A written record of a problem: steps, expected, actual, evidence.

When to use it
When someone else needs to reproduce the problem.
In the lab
Report the one payment attempt, the expected Declined status, the actual Paid row and the screenshot.
Steps → Expected Declined → Actual Paid

Evidence

Proof of what happened: a trace, screenshot or video.

When to use it
When deciding whether a finding can be trusted.
In the lab
Save the decline and the order row from the same browser session. Link them to the run.
02-decline.png + 03-history.png + trace.zip

Release readiness

The call on whether a build is safe to ship.

When to use it
Before making a ship decision.
In the lab
Read the failing check, the user impact and the remaining risk. Give a reason for shipping or holding.
Failing check → customer impact → ship or hold

Tools of the trade

Terminal

A window where you type commands instead of clicking.

When to use it
When following a command in a lesson.
In the lab
Open the terminal in the checkout folder. Print the working directory before running the crew.
pwd → git status

CLI (command-line interface)

A program you control by typing commands and options.

When to use it
When you need the same operation locally or in CI.
In the lab
Pass the two role names and the story to the run command. Watch for the new run ID.
qa-crew run quality-analyst --story STORY-2

Node.js

The runtime that executes this project’s JavaScript outside the browser.

When to use it
Before installing or running the crew on your own machine.
In the lab
Run node --version and compare it with the project’s supported version.
node --version

npm / pnpm

Tools that download and manage code packages.

When to use it
When a checkout needs its dependencies.
In the lab
Use the package manager named in the repository and install from the lockfile.
corepack pnpm install --frozen-lockfile

npx

An npm command that runs a package executable, using a local copy or fetching one if needed.

When to use it
When launching a package’s executable from your project.
In the lab
Run npx playwright --version to inspect the available Playwright command.
npx playwright --version

Package

A bundle of reusable code someone published.

When to use it
When adding a capability without writing it from scratch.
In the lab
Find the Playwright test dependency in the manifest and its resolved version in the lockfile.
package.json → @playwright/test → lockfile

Git / repo

Git tracks every change to your files; a repo is one project's folder plus its history.

When to use it
When recording a baseline or comparing two builds.
In the lab
Run git status before the lesson and git diff afterward to see exactly which files changed.
git status --short / git diff

TypeScript

JavaScript with types, so mistakes show up before you run it.

When to use it
When an agent result or function input needs a defined shape.
In the lab
Give the order status a type and let the compiler flag a mistaken value before the run.
type Status = 'Paid' | 'Declined'

Playwright

A tool that drives real browsers to test websites.

When to use it
When a check depends on what a shopper actually sees.
In the lab
Open Mini Shop, decline the wallet payment and read the order row in a real browser.
select decline → click Pay → inspect history

Headless / headed

Headless runs the browser without showing it; headed shows it on screen.

When to use it
When choosing between an interactive walkthrough and unattended checks.
In the lab
Watch the first run in a visible browser. Use headless mode for repeat runs in CI.
Interactive browser / unattended test runner

Trace viewer

Playwright's replay of a test run: every step, click and network call.

When to use it
After a failure whose cause is unclear.
In the lab
Open the saved trace, select the failing assertion and inspect the preceding click and page snapshot.
npx playwright show-trace path/to/trace.zip

CI/CD

Continuous integration and continuous delivery or deployment. Changes go through automated verification and release steps.

When to use it
When changes should trigger verification automatically.
In the lab
Configure a push to start the checkout suite. Read the test job before promoting a release.
push → install → test → report

Docker / container

A sealed box with an app and everything it needs, so it runs the same anywhere.

When to use it
When a different machine needs the same runtime.
In the lab
Build the runner image and execute the same crew command inside the container.
Image + runtime + dependencies → isolated runner

Environment variable

A setting stored outside the code, like a secret key or a URL.

When to use it
When the target or credentials differ by environment.
In the lab
Set the lab URL outside the test. Keep the provider key on the server.
LAB_URL → course workbook origin

API

A way for programs to talk to each other with requests and responses.

When to use it
When the UI and stored records need to be compared.
In the lab
Read the workbook response for this learner and compare its saved status with the browser row.
Browser → workbook API → saved record

JSON

A plain-text format for structured data.

When to use it
When passing results between tools.
In the lab
Open the runner report and locate the test name, status and error fields.
{ "status": "Declined", "amount": 19.99 }

YAML

A plain-text format for settings, using indentation.

When to use it
When configuring a role’s limits.
In the lab
Open guardrails.yaml and read the allowed hosts, token budget and available steps.
budget: / maxSteps: 12

Markdown

Plain text with simple marks for headings, lists and bold.

When to use it
When people and code need a readable instruction file.
In the lab
Open the written plan. Use headings for setup, expected behavior, observations and evidence.
# Expected / Order history shows Declined.

AI basics

LLM (large language model)

A model trained on huge amounts of text that predicts and writes text.

When to use it
When a task requires interpreting a requirement or proposing a check.
In the lab
Give the model the story and browser evidence. Verify its proposed assertion against the saved row.
Story + observation → model → proposed next check

Model / provider

A model is one specific LLM; a provider is the company that serves it.

When to use it
When configuring how an agent gets model responses.
In the lab
Choose the model you intend to use and configure the matching provider in the server environment.
Provider account → configured model → response

API key

A secret that lets your program use a provider's models, billed to you.

When to use it
When the local coordinator needs to authenticate.
In the lab
Load the key from the server environment. Display the run ID in the recording, keeping the credential private.
Server environment → provider authentication

BYOK (bring your own key)

You use your own API key instead of ours.

When to use it
When running the capstone in your own environment.
In the lab
Supply a key from your own provider account and check its usage after a small test run.
Student account → student key → capstone

Prompt

The text you send the model.

When to use it
When asking the Analyst to investigate a particular story.
In the lab
Ask for one declined wallet attempt and a comparison of the checkout message with the saved row.
Check the saved order from one declined payment.

System prompt

Standing instructions that shape every answer.

When to use it
When a role needs consistent responsibilities across stories.
In the lab
Put the Analyst’s evidence and handoff instructions in its role file.
ROLE.md + skill instructions → role guidance

Context / context window

Everything the model can see at once, with a size limit.

When to use it
When a model needs enough information to make a decision.
In the lab
Pass the approved criterion and relevant row. Keep unrelated logs out of that handoff.
Window / story · observation · approved plan

Token

A unit of text processed by the model. Token counts depend on the model and the text.

When to use it
When deciding how much context and output a run can afford.
In the lab
Check the reported token usage against the role’s budget after a short run.
Input tokens + generated tokens → usage

Tool calling

The model asks your program to run a function, then uses the result.

When to use it
When the model needs an observation from outside its conversation.
In the lab
Let the Analyst request order history. Inspect the returned row before accepting its conclusion.
shop__read_order_history → $19.99 · Paid

Structured output / schema

Making the model answer in an exact shape, checked by code.

When to use it
When one agent’s answer feeds another program.
In the lab
Validate the result’s required fields before passing the plan path to the Engineer.
submit_result → schema validation → handoff

Hallucination

A confident answer that isn't true.

When to use it
When a model states a fact about the run.
In the lab
Ask which captured order supports the claim that payment succeeded. Compare that row with the checkout message.
Claim “Charged” / Evidence no ledger entry

Nondeterminism

The same prompt can produce different answers.

When to use it
When evaluating consistency across agent runs.
In the lab
Repeat the same story several times. Score the grounded result even if the wording varies.
Same story → run A, run B, run C → compare

Agents and agentic AI

Workflow

Fixed steps decided in advance by a person. May call an AI, but the path never changes.

When to use it
When the steps and their order are known in advance.
In the lab
Configure a checkout test job to run on a push and publish its report.
Push → install → test → publish report

AI agent

An LLM working toward a goal in a loop, choosing its own next step and using tools.

When to use it
When the next useful action depends on evidence.
In the lab
Give the Analyst the story and bounded tools. Observe which tool it chooses after the decline.
Requirement → choose tool → inspect result

Agent loop

Think, act with a tool, look at the result, repeat until done or out of budget.

When to use it
When following how an agent reaches a conclusion.
In the lab
Read one tool request, its returned evidence and the next decision. Stop at the plan gate.
Observe → choose → act → observe

Agentic AI (multi-agent system)

In this course, a system of specialized agents that work toward a goal and hand off work under human oversight.

When to use it
When the work has distinct responsibilities and handoffs.
In the lab
Run the Analyst, review its plan, then let the Engineer generate the agreed check.
Analyst → human approval → Engineer

Tool

A function an agent may call: click, read a file, file a bug.

When to use it
When a role needs a concrete capability.
In the lab
Expose the order-history reader to the Analyst and inspect the data that it returns.
Tool name + arguments → observation

MCP (Model Context Protocol)

An open standard for connecting AI apps to tools and data. Servers offer tools, resources and prompts; AI apps connect to them as clients.

When to use it
When an AI application needs to discover and call tools from separate services.
In the lab
Connect the story and shop servers, then inspect the named tools the role can use.
Host ↔ MCP client ↔ MCP server

MCP server

A program that exposes tools over MCP.

When to use it
When a bounded service needs to offer an operation to a role.
In the lab
Start the configured shop server and call its reader for the current workbook.
shop server / open_workbook · decline_wallet

MCP client / host

The AI app that connects to MCP servers and lets the model use their tools.

When to use it
When distinguishing the application from the services it calls.
In the lab
Trace the coordinator’s connection from its client to the shop server and back.
Coordinator (host) → client connection → shop

Playwright test agents

Three agent definitions that ship with Playwright: planner (writes a plan), generator (writes tests), healer (fixes broken tests).

When to use it
When exploring Playwright’s own assisted planning and test maintenance.
In the lab
Compare its planner, generator and healer roles with the responsibilities of this course’s five agents.
Planner / Generator / Healer

AGENTS.md

A repository briefing for coding assistants, with project conventions, setup and test commands.

When to use it
When a coding assistant needs project-wide instructions.
In the lab
Put shared build commands and repository conventions in the project briefing.
Repo root / AGENTS.md / project conventions

ROLE.md (in this course)

The course file that defines one crew member’s purpose, instructions, tools and responsibilities.

When to use it
When defining one member of this crew.
In the lab
Open agents/quality-analyst/ROLE.md. Read the role’s purpose, allowed method and handoff before changing it.
agents/quality-analyst/ROLE.md

Skill (SKILL.md)

A folder with a SKILL.md file teaching an agent one repeatable task, following the open Agent Skills format.

When to use it
When the same activity needs a repeatable method.
In the lab
Give the Analyst a plan-writing skill with a checklist for expected and observed behavior.
skills/plan-writing/SKILL.md

Guardrails

Limits used to constrain agent actions, such as allowed tools, hosts, budgets and write locations.

When to use it
When an agent can use external systems or write files.
In the lab
Limit the shop host and output paths, then check the role’s permitted tools before running it.
Allowed host + write scope + tool list

Approval gate (human in the loop)

A pause where a person must approve before the work continues.

When to use it
When a proposed action needs human judgment.
In the lab
Compare the plan with the $19.99 evidence. Approve the specific saved-order assertion.
Plan ready → review evidence → approve

Budget

Caps on steps, tokens and minutes per agent.

When to use it
Before starting a run with paid calls or several steps.
In the lab
Set limits in the role configuration. Check usage and the stop reason when the run ends.
maxSteps / maxTokens / maxMinutes

Contract

The exact shape of an agent's input and output, checked by code.

When to use it
When one role hands data to another.
In the lab
Validate that the plan identifies the story, its evidence and the next role’s required inputs.
Plan path + required fields → validate

Handoff / chain

One agent's output becomes the next agent's input.

When to use it
When a second role depends on reviewed work.
In the lab
Pass the plan path and approval under the same run ID. Have the Engineer read that file.
Run ID → approved plan → next role

Orchestrator / coordinator

Decides the order, passes the baton and pauses at gates. You are the orchestrator; the coordinator is the code that carries it out.

When to use it
When deciding which role owns the next action.
In the lab
Start the chain once. Watch the coordinator pause after the Analyst and resume after approval.
Start chain → pause at gate → resume

Source of truth

The system where work and results officially live.

When to use it
When several systems show different versions of an event.
In the lab
Use the acceptance rule to decide what should happen. Use the stored order to establish what actually happened.
Story defines expected / record shows actual

Evals

Repeatable tests for the agents themselves, scored against known answers.

When to use it
When role instructions, tools or models change.
In the lab
Run the same labeled stories and compare the crew’s findings with the expected findings.
Known story → agent run → grade against rubric

Prompt injection

Text in a page or ticket that tries to give the agent new instructions.

When to use it
When a page, ticket or tool response contains instructions addressed to an agent.
In the lab
Treat that text as evidence. Keep using the tools and limits from the trusted role configuration.
Untrusted page text → evidence only