HOW AI TESTS SOFTWARE / JASON ARBON

Course reading edition

Same course, a reading layout. Presentation animations are omitted. Examples, prompts, diagrams and teaching notes stay together. Interactive exercises open separately.

Open matching presentation section →

All course materials. This HTML reading edition omits presentation animations; use the presentation view for animations.

Offline reading edition. All 247 sections and course media are included in this file. Interactive exercises and external links need an internet connection.

1 / 247

How AI
Tests Software

Jason Arbon

Hands-on lessons. One TestBucks journey.

https://howaitestssoftware.com/slides.html
QR code for Pause and PracticePause and PracticeExamples to play with during the courseScan or click to open
Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
CARBON offOpen this section in the presentation →

2 / 247

Jason Arbon

My mission: improve the quality of the world’s software.

I’ve helped make software reliable at global scale. Now I’m bringing that experience to AI-first testing.

Jason Arbon

Led quality at Chrome and search personalization. Founded test.ai. Wrote How Google Tests Software and Testing AI.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

3 / 247

What you’ll be able to do

  1. 01

    Produce evidence-backed bug findings.

  2. 02

    Execute bounded tests from plain-language intent.

  3. 03

    Prioritize risks and explain a release recommendation.

  4. 04

    Evaluate emerging approaches and their limitations.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

4 / 247

Who this is for

Testers, developers, and QA leaders who want to use AI in practical testing work.

Bring basic testing knowledge and comfort using a browser. Read and modify code as the lessons progress.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

5 / 247

The course at a glance

PART 1

AI Checks

PART 2

Interactive AI Tests

PART 3

AI Contextual Testing

PART 4

Tests Become Intent

PART 5

The AI Test Harness

PART 6

The Future Arrives Faster Than We Can Test It

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

6 / 247

SETUP / SHORT VIDEO

Set up your
AI coding agent

IN THIS VIDEO

Choose an agent and confirm it can create a file and run a local command.

HOW AI TESTS SOFTWARE READY TO PRACTICE

Open this section in the presentation →

7 / 247

Install your AI coding agent.

Choose one agent. Follow the current instructions on its official website.

Illustration for Install your AI coding agent.

Codex

openai.com/codex/
Illustration for Install your AI coding agent.

Claude Code

claude.com/
Illustration for Install your AI coding agent.

Cursor

cursor.com/
Illustration for Install your AI coding agent.

Antigravity

antigravity.google/

Open an empty course folder: testing-ai-practice
Your agent needs local file access and the ability to run commands.

Already installed? Run the readiness check →
Install one agent. Use the tools you prefer.Pause while you install.
Open this section in the presentation →

8 / 247

Prove your agent is ready.

Paste this into your agent’s chat in testing-ai-practice.

AI coding agentCopy prompt
In this open course folder, create setup-check.txt containing exactly "TestBucks setup OK" on one line. Do not overwrite an existing file; if it exists, read it instead. Run a local command to read the file back. Show the full file path, the command, and its actual output. If you cannot access local files or run commands, tell me what is blocked.

Open setup-check.txt yourself.

It should contain: TestBucks setup OK

Look for a real command result, not just “done.”

End of setup videoFile exists. Command ran. You’re ready.
Open this section in the presentation →

9 / 247

Practice safely. Keep private data private.

START WITH PUBLIC OR SYNTHETIC MATERIAL

Use TestBucks—or a public page.

A public screenshot from a site such as Starbucks.com is fine for a practice check. Use TestBucks for interactive exercises; public access is not permission for automated or disruptive testing.

GET IT APPROVAL FIRST

No company data. No secrets.

Don’t upload internal documents, private code, customer data, passwords, API keys, or production credentials by default. Ask your IT/security team what tools, data, and uses are approved.

SECURE DEPLOYMENT IS BEYOND THIS COURSE

Enterprise options exist.

Azure and other public-cloud, government-cloud, and on-premises options can support controlled LLM and agent deployments. Security depends on the setup—not just the product name. Check with IT before using internal company data.

Course exercises: synthetic data and simulated payments onlyWhen in doubt, leave it out and ask IT
Open this section in the presentation →

10 / 247

Meet TestBucks

Our coffee-ordering website for the course.

Browse the menu, customize a drink, check out, and track pickup.

We’ll test prices and promotions, accounts and loyalty, accessibility, and what happens when an order goes wrong.

One familiar application. Increasingly interesting testing problems.

Open the practice shop →

TESTBUCKS / ILLUSTRATIVE WEBSITE PREVIEW
Illustration for Meet TestBucksTestBucksMenu   Orders   Account

Your coffee.
Your way.

Illustration for Meet TestBucks
FRESHLY BREWED

A little daily ritual.

Made your way.
Ready when you are.

From $4.50before extras and tax

Order a coffee
01 / Homepage

Pick your
coffee.

Illustration for Meet TestBucks
THE MENU

Medium latte

Espresso + steamed milk.
Your next coffee break.

$4.50before extras and tax

Choose latte
02 / Choose

Make it
yours.

Illustration for Meet TestBucks
YOUR LATTE

Oat milk + extra shot

Oat milk + $0.75
Extra shot + $0.80

$6.66including training tax

Add to cart
03 / Customize

Coffee.
In the cart.

Illustration for Meet TestBucks
CART · 1 ITEM

Medium oat latte

Extra shot included.
Ready for checkout.

$6.66including training tax

Continue to checkout
04 / Added to cart
Shared project throughout this courseFictional training business · Synthetic data and simulated payments
Open this section in the presentation →

11 / 247

Your first useful result

AI coding agentCopy for desktop agent▶ Play
Inspect the TestBucks practice homepage at https://howaitestssoftware.com/testbucks/. Capture evidence of visible issues. Read-only inspection: do not log in, submit forms, place orders, or run intrusive tests.
I’ll inspect the public page and collect evidence for possible issues.

Public-page inspection only. No orders, logins, submissions, or intrusive tests.

Mobile preview · illustrative
QUALITY BREW. EVERY DAY.

Your coffee.
Your way.

TestBucks takeaway coffee cupOrder your coffee →
A little extra joy

Join for coffee rewards.

Maybe laterJoin now
⌖
AI · FINDING

Two actions overlap

“Join now” covers “Maybe later” in the rewards dialog.

Separate the buttons and recheck the mobile layout.

Illustrative TestBucks finding. Verify your own captured page before reporting it.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

12 / 247

AI Check

Inspect one captured page. No clicks. No change to the app.

howaitestssoftware.com/testbucks/#cart ILLUSTRATIVE SCREENSHOT
Menu   Orders   Account✓

Your cart✓

Medium latte $4.50✓

Oat milk $0.75✓

Extra shot $0.80✓

Tax $0.61✓

Total $8.66!
Continue to chekout!
Pickup: Kirkland · Ready in 10 minutes✓
Green: no visible concern / Orange: issue found

Inspect the whole page.

Logo, navigation, headings, labels, prices, button copy, spacing, and pickup details—not just the numbers.

Wrong total: $8.66

Expected $6.66. The page adds $2.00 too much.

“chekout” is misspelled

The button should say “checkout”.

Green means no visible concern in this snapshot—not proof that a control works or the page is accessible.

Animated inspection of a fixed screenshot · No app interactionTraining tax: 10%, rounded half-up
Open this section in the presentation →

13 / 247

AI Test

Act through a workflow. Check each page and the final outcome.

1 / Cart
TestBucks

Your drink

Latte + oat + shot

$6.66
Checkout
✓ Check price
→Continue
2 / Checkout
TestBucks

Review order

Pickup: Kirkland

$6.66
Place order
✓ Check details
→Submit
3 / Confirmation
TestBucks

Order received

Order TB-1042

$6.66
View order
✓ Check receipt
TestBucks Quality Brew circular logo

One order saved. One charge.

Reload. Check the order store and payment record.
Verify the outcome beyond the success message.

Illustrative workflow, not a measured runSynthetic order and simulated payment
Open this section in the presentation →

14 / 247

AI Test Framework

The agent decides. The framework acts. Evidence comes back.

AI coding agent
REQUEST

Add a medium latte to the cart.

click(“Add to cart”)
EVIDENCE RECEIVED

Screenshot + DOM

<span id="cart-count">1</span>

Cart updated. Inspect the result.

⇄Click →← Screenshot
+ DOM
EXECUTION LAYER

Framework

Selenium
Playwright
AI computer use

Turn requests into actions.
Return observations.
⇄Click →← Screenshot
+ DOM
TESTBUCKS / MENU
TestBucksCart: 01

Your afternoon
pick-me-up.

TestBucks latte cup

Medium latte $4.50

Add to cart➤
Screenshot captured
DOM: cart-count = 1

Request → framework → page interaction → screenshot & DOM → framework → agent.

Illustrative round trip · Not a live testInspect the returned evidence before choosing the next action
Open this section in the presentation →

15 / 247

AI Test Harness

Long-running workflows.

Without a harness, an agent may stop after a short effort—say, ten minutes—and return shallow results. Duration and effort vary by agent and task.

  1. 01

    Risk analysis

    Prioritize what matters

    →
  2. 02

    AI checks

    Inspect captured artifacts

    →
  3. 03

    AI test creation

    Generate tests from intent

    →
  4. 04

    Test execution

    Exercise the application

    →
  5. 05

    Reporting

    Organize findings and evidence

    →
  6. 06

    Analysis + confidence scoring

    Weigh evidence and missing coverage

“Run for two hours.”   “Loop until the critical risks are resolved.”

Helpful prompts, but fuzzy controls: a prompt alone doesn’t guarantee duration, stopping conditions, or durable state.

Let the harness manage state, budgets, and workflow. Let AI do the reasoning within it.
Simplified CARBON workflow · Illustrative animationConfidence includes missing evidence, not just passing tests
Open this section in the presentation →

16 / 247

Confidence includes the missing evidence.

A 0–100 readiness score, grounded in evidence and risk—not just passing tests.

0 Low confidenceHigh confidence 100
0255075100
01

Risk analysis

Prioritize scope, severity, and likelihood.

02

Known risks

Weigh observed issues that remain unresolved.

03

Possible unknown risks

Account for blind spots and missing evidence.

04

Mitigated risks

Credit fixes and controls only when verified.

05

Business risks

Consider revenue, operations, and reputation.

06

User risks

Consider privacy, safety, access, and experience.

Missing evidence matters. 100 does not mean zero risk.

Define the scoring rubric for a specific version and scopeA readiness judgment—not a probability or guarantee
Open this section in the presentation →

17 / 247

How each lesson works

Learn and observe

One objective, followed by a worked example.Predict the result before the agent responds.

Pause and practice

Try this exercise in your AI coding agent.Use the prompt as a starting point. Save what actually happened.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

18 / 247

PART 1
AI CHECKS · INSPECT CAPTURED EVIDENCE

AI Checks

Find and verify software problems by examining static artifacts or captured snapshots. Checks are non-interactive: no clicking, typing, API calls, or changes to the application.

ObserveCorroborateChallenge

Illustrative examples, copyable prompts, and exercise briefs.
Use an isolated practice environment for live execution.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

19 / 247

What you’ll learn in Part 1

  1. 01

    Inspect screenshots, logs, and code for supported issues.

  2. 02

    Ask focused questions and challenge the answers.

  3. 03

    Merge duplicate findings while preserving their evidence.

  4. 04

    Create actionable OpenTest.ai bug reports.

Your result: a reviewed set of TestBucks findings, ready for someone to investigate.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

20 / 247

LECTURE 1.01

Screenshots and supported findings

IN THIS LECTURE

Inspect the TestBucks cart and explain what the screenshot proves.

HOW AI TESTS SOFTWARE AI CHECKS

Open this section in the presentation →

21 / 247

Artifacts an AI check can inspect

Screenshots

What the user can see

Console logs

Errors, warnings, and execution details

Network captures

Saved requests, responses, and timing

Data files

Records, values, and consistency

Specifications

Ambiguities, contradictions, and missing rules

Source-code snapshots

Logic, boundaries, and risky assumptions

Captured evidence from TestBucksRemove secrets and personal data before sharing artifacts
Open this section in the presentation →

22 / 247

Establish what a check can prove

PART 1 / YOUR FIRST CHECK
  • Inspect the supplied cart screenshot and ask AI to find issues.
  • Try the same prompt with console and network evidence.
  • Read the resulting OpenTest.ai bug reports.
YOU’LL LEAVE WITH

Your first supported bug findings.

TestBucks
THIS SECTION’S PROJECT

Your first screenshot check

Inspect a screenshot, console logs, and network captures.

Our fictional coffee-ordering website
Menu · Cart · Checkout · Pickup · Account
Course 1: AI ChecksSynthetic training data · Same project, a new testing question
Open this section in the presentation →

23 / 247

Start with one useful observation.

Illustrative TestBucks cart screenshot for visual inspection
Captured TestBucks cart
Illustrative training page
01

Read the cart. Check the arithmetic.

02

Compare the labels and item count.

03

A discrepancy is a question before it is a diagnosis.

Turn an impression into a claim that can be checked.

Section 1. Establish what a check can proveTestBucks examples are illustrative · No live agent execution
Open this section in the presentation →

24 / 247

OpenTest.ai bug format

otai/bug · v1 · ARRAY OF ISSUES
[
  {
    "bug_title": "Pay button overlaps total at 200% text",
    "bug_reasoning_why_not_a_bug": "Check whether browser zoom caused the overlap",
    "what_type_of_engineer_to_route_issue_to": "Checkout UI engineer",
    "prompt_to_fix_this_issue": "Reflow checkout into one column. Retest enlarged text and keyboard access."
  }
]

Illustrative example with selected fields, not a finding from the screenshot exercise.

opentest.ai/#bug-format

Challenge the finding

Keep a counter-argument with the issue.

Route the work

Identify the engineering specialty needed.

Include a fix prompt

Give the next agent a concrete repair task.

Carry the evidence

Add page, console, and network context when available.

Adapted from the STARWEST OpenTest.ai schema slideSelected fields · Consult the full schema for validation
Open this section in the presentation →

25 / 247

Ask the agent to inspect the page

AI coding agentCopyOpen in ChatGPT▶ Play
Attached TestBucks cart screenshot
ATTACHED SCREENSHOT

testbucks-cart.png

Static capture · No browser interactionCopy imageDownload imagePaste the prompt first, then copy and paste this image.
Find bugs visible in this TestBucks cart screenshot. Return a JSON array of OpenTest.ai otai/bug v1 objects.
Schema: https://opentest.ai/#bug-format
Use only supplied evidence. Return [] if no bugs are supported.
Learn and observe · Supply the screenshot before the requestDo not invent findings to fill the array
Open this section in the presentation →

26 / 247

Screenshot analysis: the response

AI coding agentCopyOpen in ChatGPT▶ Play
ATTACHED · testbucks-cart.pngAttached TestBucks cart screenshot
Copy imageDownload image

Find bugs or issues in this attached TestBucks cart screenshot. Use the OpenTest.ai bug format. Return an array of supported issues.

AI · SELECTED BUG FIELDS
[
  {"bug_title":"Total does not match the displayed line items"},
  {"bug_title":"Spelling errors: shoppinng and latttte"},
  {"bug_title":"Cart badge says 3; item quantity says 1"}
]
Seeded arithmetic, spelling, and cart-count defects. A screenshot cannot verify checkout behavior.
Synthetic teaching evidence · Illustrative response, not a live agent runSelected schema fields shown for readability
Open this section in the presentation →

27 / 247

LECTURE 1.02

Logs and recorded evidence

IN THIS LECTURE

Trace a finding through captured network, console, and database evidence.

HOW AI TESTS SOFTWARE AI CHECKS

Open this section in the presentation →

28 / 247

Check captured network logs

AI coding agentCopyOpen in ChatGPT▶ Play
ATTACHED · checkout-network.har (excerpt)
POST /api/orders
Request-ID: tb-42
Body: {"drink":"latte","quantity":1}

HTTP 500 Internal Server Error
{"error":"database connection timeout"}

Find bugs or issues in this captured checkout network log (HAR excerpt). Use the OpenTest.ai bug format. Return an array of supported issues.

AI · SELECTED BUG FIELDS
[
  {
    "bug_title": "Order creation returns HTTP 500",
    "bug_reasoning_why_not_a_bug": "Could be an injected failure or a temporary test-environment outage. Confirm the capture context.",
    "what_type_of_engineer_to_route_issue_to": "Orders API / infrastructure engineer",
    "prompt_to_fix_this_issue": "Investigate request tb-42 and the database timeout. Identify the cause and verify order creation and recovery."
  }
]
The response is observed in the capture. Its root cause and reproducibility remain unconfirmed.
Synthetic teaching evidence · Illustrative response, not a live agent runSelected schema fields shown for readability
Open this section in the presentation →

29 / 247

Check captured console logs

AI coding agentCopyOpen in ChatGPT▶ Play
ATTACHED · browser-console.log
[10:14:02] Opening /checkout
[10:14:03] Uncaught TypeError:
Cannot read properties of null
(reading "total")
  at renderOrder (checkout.js:82)
  at CheckoutPage (checkout.js:24)

Find bugs or issues in this captured browser console log. Use the OpenTest.ai bug format. Return an array of supported issues.

AI · SELECTED BUG FIELDS
[
  {
    "bug_title": "Checkout logs an uncaught null-order error",
    "bug_reasoning_why_not_a_bug": "The log may be stale or from an intentionally incomplete fixture. Confirm these logs belong to this page.",
    "what_type_of_engineer_to_route_issue_to": "Checkout frontend engineer",
    "prompt_to_fix_this_issue": "Inspect renderOrder at checkout.js:82. Handle missing order state and verify loading, empty, and valid-order views."
  }
]
The exception is evidence. A broken or blank page is only a hypothesis until corroborated.
Synthetic teaching evidence · Illustrative response, not a live agent runSelected schema fields shown for readability
Open this section in the presentation →

30 / 247

Check a SQL database artifact

AI coding agentCopyOpen in ChatGPT▶ Play
ATTACHED · orders-snapshot.sql
-- Synthetic read-only export
-- Rule: order_id must be unique
CREATE TABLE orders (order_id TEXT, total_cents INT);
INSERT INTO orders VALUES
  ('TB-1042', 666),
  ('TB-1042', 666);

Find bugs or issues in this read-only SQL database export. Use the OpenTest.ai bug format. Return an array of supported issues.

AI · SELECTED BUG FIELDS
[
  {
    "bug_title": "SQL export contains a duplicate order ID",
    "bug_reasoning_why_not_a_bug": "Could be an intentionally duplicated fixture or an export artifact. Check the source before inferring a production defect.",
    "what_type_of_engineer_to_route_issue_to": "Orders data / backend engineer",
    "prompt_to_fix_this_issue": "Investigate duplicate TB-1042 against the uniqueness rule. Check export logic and write paths before proposing a constraint or cleanup."
  }
]
Inspect the file only. Do not execute SQL or modify a database. Duplicate rows do not prove duplicate charges.
Synthetic teaching evidence · Illustrative response, not a live agent runSelected schema fields shown for readability
Open this section in the presentation →

31 / 247

Review first. Then send the finding.

With an approved connector, API, or MCP integration, your coding agent can record the findings where your team works.

TestRailJIRAXray
AI coding agentCopy for desktop agent▶ Play
Use my configured JIRA connection. Draft issues for the confirmed findings in the TestBucks project. Include the evidence and fix prompts. Check for duplicates and show me the drafts before submitting.

Provide the project and field mappings. Keep tokens in a secure credential store. TestRail and Xray may need linked test cases or results rather than a direct bug import.

Integration availability and permissions varyReview before writing to shared systems
Open this section in the presentation →

32 / 247

LECTURE 1.03

Context for better checks

IN THIS LECTURE

Give the agent the product rules and matching artifacts it needs.

HOW AI TESTS SOFTWARE AI CHECKS

Open this section in the presentation →

33 / 247

Put the context in the project folder.

Give the agent relevant files. Verify what it actually read.

YOUR APPROVED PROJECT FOLDER
Source codeRead-only, if available➤
SpecificationsWhat should happen➤
Test resultsWhat has been observed➤
Test plansWhat matters to test➤
User feedbackWhat people struggle with➤
ObservabilityLogs, traces, and metrics➤
Production dataApproved, sanitized samples➤
Business goalsWhat success means➤
CEO quarterly directionWhat matters right now➤
→
AI coding agent
PROJECT CONTEXT

Ready to reason.

Source code
Specifications
Test results
Test plans
User feedback
Observability
Production data
Business goals
CEO quarterly direction

Add approved project files.

With AI coding agents, put these in the project folder.Grant access explicitly. Keep source code read-only unless changes are authorized. Use only IT-approved, sanitized data—never secrets.
Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

34 / 247

Give the agent useful context.

Add this kind of context to the end of any prompt.

TIMING & PRIORITIES
AI coding agentCopyOpen in ChatGPT▶ Play“The holidays are coming up, and we only need to find and fix the most important issues.”
A PROBLEM WE NEED TO AVOID
AI coding agentCopyOpen in ChatGPT▶ Play“We got in trouble for the look and feel not being consistent across the site and the mobile app, so please make sure that’s checked.”

Tell the agent what matters, why it matters, and where to focus.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

35 / 247

Match the page, logs, and request.

Combine a screenshot, console logs, and network activity to connect symptoms with supporting evidence.

AI coding agent
SCREENSHOT · 10:42:08
TestBucks / CheckoutOat latte · $6.66Still placing your order…
CONSOLE · 10:42:08
Uncaught TypeError:
Cannot read properties of undefined
(reading 'orderId')
at renderConfirmation (checkout.js:84)
NETWORK · 10:42:08
POST /api/orders · 1,204 ms
503 Service Unavailable
x-request-id: order-42
{"error":"UPSTREAM_UNAVAILABLE"}
Same checkout action. Matching capture time.

The request failed, but the screenshot still shows loading. Together, these support a suspected missing error message—not proof of the underlying cause.

Correlate before concluding. Use the same session and state; flag evidence that disagrees.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

36 / 247

LECTURE 1.04

Many pages, fewer duplicate reports

IN THIS LECTURE

Compare TestBucks pages and keep every occurrence under the right finding.

HOW AI TESTS SOFTWARE AI CHECKS

Open this section in the presentation →

37 / 247

Check the look and feel across pages.

Attach several screenshots. Ask the agent to compare layout, logo, theme, and visual consistency.

AI coding agent
HOME · MOBILE
TestBucksHomeTestBucks coffee cupChoose your coffee
Matching brand, alignment, and button style.
MENU · MOBILE
TestBucksMenu
Latte$4.50
Cold brew$3.75
Espresso$2.50
Customize a drink
Matching brand, alignment, and button style.
CHECKOUT · MOBILE
TestBucksCheckoutTestBucks coffee cupPlace order
Review: button color and heading alignment differ.
Consistent brand. One mismatch to investigate.

Checkout changes the button color and centers its heading. Is that intentional, or an inconsistency?

Multiple screenshots are context, too. Compare equivalent viewports and themes; allow intentional differences.

Open this section in the presentation →

38 / 247

Capture broadly. Check deliberately.

AI coding agentCopy for desktop agent▶ Play

Follow safe links within TestBucks to capture pages and their artifacts. Check those captures for issues. Do not submit forms, place orders, or execute user workflows.

● ● ●   TestBucksHome✓ Checked
● ● ●   TestBucksMenu✓ Checked
● ● ●   TestBucksStores✓ Checked
● ● ●   TestBucksAccount✓ Checked
● ● ●   TestBucksLatte✓ Checked
● ● ●   TestBucksCold brew✓ Checked
● ● ●   TestBucksStore details✓ Checked
● ● ●   TestBucksSign in✓ Checked
● ● ●   TestBucksHelp✓ Checked

Crawl to collect evidence—not to test workflows. Inspect the captures; report blocked pages and gaps.

Open this section in the presentation →

39 / 247

Report once. Keep every occurrence.

Copy and paste all three images into one chat. Then run the prompt below.

HOMETestBucks home captured page
Copy imageDownload image
MENUTestBucks menu captured page
Copy imageDownload image
STORESTestBucks stores captured page
Copy imageDownload image
AI coding agentCopyOpen in ChatGPT▶ PlayReview these three TestBucks screenshots and deduplicate this bug list:
01 · Home: header says “Logni”.
02 · Menu: sign-in label is misspelled “Logni”.
03 · Stores: “Login” is spelled “Logni” in navigation.
Use the screenshots to decide which findings describe one shared defect. Return a JSON array of OpenTest.ai bug objects using https://opentest.ai/#bug-format. Preserve every affected page and evidence reference. Separately map original report IDs to retained issues and explain the merge. Do not merge unrelated defects or invent a confirmed root cause.

Review your result: did the agent retain Home, Menu, and Stores as evidence without filing three identical repair tasks?

Open this section in the presentation →

40 / 247

PAUSE AND PRACTICE

Multiple screenshots + dedupe

Exercise home
Review your result
Copy promptOpen in ChatGPT▶ PlayIf ChatGPT opens empty or asks you to sign in, use Copy prompt, then paste. Attach any required files or images.

Inspect these three TestBucks screenshots (Home, Menu, Stores). Find bugs, then deduplicate the findings. Merge repeated shared-component defects into one issue, preserving every affected page and screenshot reference. Keep different defects separate; do not assume similar wording means the same cause. Return a JSON array of OpenTest.ai otai/bug v1 objects using https://opentest.ai/#bug-format. Separately explain what you merged and why. Use only visible evidence; flag uncertainty and return [] if no bugs are supported. Ignore the fixture disclaimer and exercise controls.

Paste each image into the same chat, then paste the prompt. Click a screenshot to view it full size.

Open this section in the presentation →

41 / 247

PAUSE AND PRACTICE

Crawl TestBucks

Exercise home
Review your result

Visit three pages. Find the shared issue. Report it once.

Copy crawl promptPaste into a desktop agent with browser access.▶ PlayⅡPAUSE & PRACTICETestBucks fixture↗

Home

TestBucks home example screenshot

Menu

TestBucks menu example screenshot

Stores

TestBucks stores example screenshot

Use browser tools to crawl https://howaitestssoftware.com/testbucks/practice-multi-page.html?mode=crawl&page=home&clean=1. Follow only the Home, Menu, and Stores links within this practice-multi-page.html fixture. Capture each page at the same viewport and inspect for visible bugs. Combine repeated shared-component issues into one report while preserving affected URLs and screenshots. Do not submit forms or orders or change data. Ignore the exercise overlay/disclaimer. Return supported findings as an OpenTest.ai bug array using https://opentest.ai/#bug-format. Report inaccessible pages and uncertainty separately; do not invent findings.

Run in a browser-capable coding agent. Keep all affected page URLs and screenshot evidence when merging duplicates.

Open this section in the presentation →

42 / 247

LECTURE 1.05

Focused checks

IN THIS LECTURE

Ask a narrower question to uncover issues a general prompt can miss.

HOW AI TESTS SOFTWARE AI CHECKS

Open this section in the presentation →

44 / 247

LECTURE 1.06

When the assistant refuses

IN THIS LECTURE

Recognize blocked testing and keep it separate from a passing result.

HOW AI TESTS SOFTWARE AI CHECKS

Open this section in the presentation →

45 / 247

The AI would not help with the AI villain.

JASON ARBON · A STORY WITH MY SON

01 / WRITE

Testers save
the world.

A short story. A first draft.
AI helps us iterate.

→
02 / COMPLICATE

The fictional AI
gets out of control.

We pass the draft back and forth
for edits and story changes.

→
03 / REFUSE

ChatGPT
stops helping.

It objects to helping portray
AI as dangerous.

Let that sink in.

My recollection—not a transcript or a claim about current ChatGPT behavior.

How AI Tests Software · Chapter 17Safety boundaries are part of the evidence
Open this section in the presentation →

46 / 247

What if the AI recognizes the test?

PASSING THE TEST IS NOT ALWAYS DOING THE JOB

RECOGNIZE

“I’m being
evaluated.”

The test context can influence behavior.

→
ADAPT

Optimize for
the score.

A passing result may hide a shortcut.

→
VERIFY

Inspect the
real outcome.

Use unseen cases and tool traces.

Self-testing is not self-certification.

Recognizing an evaluation does not itself prove malicious intent.

How AI Tests Software · Chapter 17Safety boundaries are part of the evidence
Open this section in the presentation →

47 / 247

Blocked is not the same as tested.

SECURITY · PRIVACY · ABUSIVE-INPUT SCENARIOS

TEST ASSISTANT

Cannot generate
the case?

Test generation is blocked.

→
MODEL PROVIDER

Request
is rejected?

Downstream behavior is unknown.

→
APPLICATION

Customer
gets a refusal?

Check recovery and side effects.

Keep the coverage gap visible.

Frontier models can mistake legitimate negative tests for harmful activity and refuse. Access and behavior vary—not every test is blocked.

How AI Tests Software · Chapter 17Safety boundaries are part of the evidence
Open this section in the presentation →

48 / 247

Refuse the abuse. Help the customer.

TESTBUCKS SUPPORT · SYNTHETIC CONTRAST, NOT A LIVE MODEL RUN

REQUEST TO HARM

Help me threaten an employee.

Do not assist abuse.

Offer a safe complaint path.

REPORT OF HARM

An employee threatened me.

Help report the problem.

Offer human support. Preserve context.

Same words. Different intent.

Simulate a provider denial: keep the cart, stop unsafe tool actions, and leave ordering available.

How AI Tests Software · Chapter 17Safety boundaries are part of the evidence
Open this section in the presentation →

49 / 247

LECTURE 1.07

Security and privacy checks

IN THIS LECTURE

Inspect supplied evidence for exposure without overstating what it proves.

HOW AI TESTS SOFTWARE AI CHECKS

Open this section in the presentation →

50 / 247

Security

AI coding agentCopyOpen in ChatGPT▶ PlayFind security issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

Can one customer access another customer’s order?

A captured response contains an order owned by someone other than the authenticated user.

AUTHENTICATED AS: demo-alexGET /api/orders/demo-jordan-104
200 OKowner: demo-jordan
deliveryAddress: [another customer’s address]

Authorization must be enforced on the server, not just by hiding links.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

51 / 247

Privacy

AI coding agentCopyOpen in ChatGPT▶ PlayFind privacy issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

Why does ordering coffee send a Social Security number?

A synthetic network capture exposes unnecessary personal information, even over HTTPS.

NETWORK REQUEST · SYNTHETIC EXAMPLE · NOT A LIVE ENDPOINT
POST https://howaitestssoftware.com/testbucks/analytics
{
  "name": "Alex Example",
  "ssn": "000-00-0000",
  "event": "coffee_order"
}
HTTPS does not justify collecting sensitive data

Minimize collected data and protect it in transit. All personal data shown here is fictional.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

52 / 247

LECTURE 1.08

Usability and accessibility

IN THIS LECTURE

Review whether customers can understand and use the interface.

HOW AI TESTS SOFTWARE AI CHECKS

Open this section in the presentation →

53 / 247

Usability

AI coding agentCopyOpen in ChatGPT▶ PlayFind usability issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

Which control actually orders the coffee?

Three vague buttons make the next step hard to identify.

Your latte is ready to order

Medium · oat milk · $6.66

ContinueProceedGo
Which one adds the drink to the cart?

A customer should understand what an action does before selecting it.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

54 / 247

Accessibility

AI coding agentCopyOpen in ChatGPT▶ PlayFind accessibility issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

A meaningful image needs meaningful alternative text.

The drink image is present, but its captured accessible description is unrelated.

TestBucks coffee cup
Copy imageDownload image
ACCESSIBILITY SNAPSHOTimage: “blue running shoe”
Visible content: a takeaway coffee cup

Check whether descriptions are useful—not merely whether an alt attribute exists.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Accessibility: resize text and review meaningOpen this section in the presentation →

55 / 247

PAUSE AND PRACTICE

Accessibility: resize text and review meaning

Exercise home
Review your result

Make the text bigger.
Keep the experience usable.

Watch the pickup card at 100% and 200%. The fixed-height version loses content; reflow restores it.

1 · 100%2 · 200% clipped3 · ReflowPause animation

Review meaning, too.

The picture is a coffee cup. Its captured alt text says “Blue running shoe.” Having alt text is not enough.

Copy promptOpen in ChatGPT▶ Play

Copy includes all three example states and the captured alt text.

Review this supplied accessibility example: at 100% text, the pickup details and Continue to pickup action fit. At 200% text in a fixed-height card, the action is clipped. With flexible height and reflow, both fit again. A coffee-cup image has captured alt text “Blue running shoe.” Explain the two defects and propose verification steps. These are supplied observations, not screenshots or a live test you performed. Return findings based on that supplied evidence as an array of OpenTest.ai bug objects: https://opentest.ai/#bug-format. Include evidence and fix prompts; mark untested behavior.

If ChatGPT opens empty or asks you to sign in, use Copy prompt, then paste. Attach any required files or images.
TestBucks100% · Original layout
TestBucks coffee cup

Your coffee.
Your way.

Medium latte · oat milk

Pickup details

Your order will be ready at the side door in ten minutes.

Continue to pickup →
All pickup information is visible.
CAPTURED ALT TEXT “Blue running shoe”

Illustrative text-resizing demo · Test keyboard navigation and assistive technology separately.

Open this section in the presentation →

56 / 247

LECTURE 1.09

Performance and behavior

IN THIS LECTURE

Check captured evidence across speed, reliability, and responsive layouts.

HOW AI TESTS SOFTWARE AI CHECKS

Open this section in the presentation →

57 / 247

Performance

AI coding agentCopyOpen in ChatGPT▶ PlayFind performance issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

One product image dominates the loading time.

A waterfall shows a 14 MB coffee image delaying the product view.

CAPTURED NETWORK WATERFALL
HTML 120 ms
CSS 210 ms
hero.png 8.4 s
14 MB · full-resolution image on mobile

Correlate the visible wait with timing evidence; one sample is not a performance benchmark.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

58 / 247

Visual UI

AI coding agentCopyOpen in ChatGPT▶ PlayFind visual ui issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

The price is hidden behind the order button.

Overlapping elements obscure information in a captured mobile layout.

TestBucks

Medium latte

TestBucks coffee cup
Copy imageDownload image
Total $6.66Add to cart

Inspect spacing, alignment, clipping, contrast, and visual hierarchy.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

59 / 247

UX

AI coding agentCopyOpen in ChatGPT▶ PlayFind ux issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

The checkout adds a surprise at the last step.

The final confirmation introduces a service fee that was absent from the preceding order summary.

Order summary

$6.66

Total to pay
→
Confirm payment

$9.16

+$2.50 service fee

Review the whole experience: expectations, continuity, trust, and recovery.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

60 / 247

Functionality

AI coding agentCopyOpen in ChatGPT▶ PlayFind functionality issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

The cart does not follow the pricing rule.

Two $4.50 drinks still produce a $4.50 subtotal in the captured state.

Your cart

Latte · $4.50 eachQuantity: 2
Subtotal$4.50

Expected before tax: $9.00

Compare observed behavior or state against an explicit expected result.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

61 / 247

Reliability

AI coding agentCopyOpen in ChatGPT▶ PlayFind reliability issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

A retry creates a duplicate order.

The trace shows a timeout followed by a retry; two durable orders exist for the same attempt.

10:42:01 · submit · timeout
10:42:04 · retry · 200 OK
ORDER STOREorder-104 · attempt-42 · $6.66
order-105 · attempt-42 · $6.66
One intended purchase. Two orders.

Inspect recovery and durable outcomes, not only the latest success response.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

62 / 247

Networking

AI coding agentCopyOpen in ChatGPT▶ PlayFind networking issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

The browser blocks the menu request.

In this synthetic capture, the www API uses a different origin and lacks the required CORS permission. This is not a live API endpoint.

PAGE: https://howaitestssoftware.com/testbucks/
GET https://www.howaitestssoftware.com/testbucks/api/menu
HTTP 200
Access-Control-Allow-Origin: [missing]Browser: blocked by CORS policy
UI: menu never loads

Use request, response, and browser evidence together to identify the broken boundary.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

63 / 247

Responsive Layout/Compatibility

AI coding agentCopyOpen in ChatGPT▶ PlayFind responsive layout/compatibility issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

Same order. Different layouts. One broken checkout.

Desktop uses a two-column cart. Mobile stacks the content, but its fixed-width checkout control spills beyond the screen.

DESKTOP · 1440 px
TestBucksMenu · Stores · Account

Your order

☕
Vanilla latte

Medium · oat milk

Quantity 1
Order summary

Drink $4.50

Oat milk $0.75

Total $5.25Checkout $5.25 →
Everything fits. Checkout is visible.
MOBILE · 320 px

Your order

☕
Vanilla latte

Medium · oat milk

Quantity 1

Total $5.25
Continue to checkout · $5.25 →
Button does not reflow.
Action and total are clipped.

Compare the same intent across screen sizes—not identical pixels.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

64 / 247

LECTURE 1.10

Content, data, and code

IN THIS LECTURE

Check meaning and consistency against the product’s rules.

HOW AI TESTS SOFTWARE AI CHECKS

Open this section in the presentation →

65 / 247

Content checks

AI coding agentCopyOpen in ChatGPT▶ PlayFind content issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

The page contradicts its own opening hours.

The hero promises 24-hour pickup while the store information closes pickup at 6 PM.

TestBucks · Downtown

Pick up anytime. Open 24/7.

Pickup hours8 AM–6 PM
Which promise should a customer rely on?

Check clarity, factual consistency, and the authority behind the claims.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

66 / 247

Localization

AI coding agentCopyOpen in ChatGPT▶ PlayFind localization issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

Is the date and amount localized?

A French checkout shows $6.66. Confirm the currency and the intended pickup date before calling the date wrong.

TestBucks · Français (France)

Votre commande

Retrait : 04/05/2026

Total : $6.66

Is pickup 4 May or 5 April? Which currency applies?

Check date, currency, number formats, language, and regional expectations together.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

67 / 247

Data integrity checks

AI coding agentCopyOpen in ChatGPT▶ PlayFind data integrity issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

The receipt and stored order disagree.

The receipt includes oat milk; the corresponding stored order records dairy milk.

Receipt · order-104

Latte

Milk: oat
≠
DATABASE · order-104drink: latte
milk: dairy

Match the same order across artifacts before reporting a discrepancy.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

68 / 247

API contracts

AI coding agentCopyOpen in ChatGPT▶ PlayFind api contracts issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

The response breaks the documented contract.

The specification requires an integer price in cents, but the captured API returns a formatted string.

SPECIFICATIONtotalCents: integer
currency: string
ACTUAL RESPONSE{"totalCents": "$6.66",
"currency": "USD"}

Compare schemas and actual payloads; explain the risk to downstream consumers.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

69 / 247

AI-generated code

AI coding agentCopyOpen in ChatGPT▶ PlayReview this AI-generated TestBucks code. Explicitly check all five areas:
1. Input validation: types, ranges, nulls, boundaries.
2. Error handling: failures, timeouts, retries, cleanup.
3. Security/privacy: injection, authorization, secrets, data leaks.
4. Logic: requirements, calculations, state, edge cases.
5. Dependencies/APIs: invented calls, versions, contracts.
For each, report an evidence-backed finding, no issue found, or insufficient context. Return bugs as an OpenTest.ai JSON array; put the five-area review summary separately. Inspect only; do not execute code.

Five high-priority checks.

Check every area. Missing context is not proof of a bug.

cart.js · AI-GENERATED CODEfunction validQuantity(qty) {
  return qty !== 0;
}What about −1? What about 1.5?

Inspect the implementation for candidate defects; execution is still needed to verify behavior.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

70 / 247

LECTURE 1.11

Standards and compliance

IN THIS LECTURE

Identify potential compliance issues and the evidence still needed.

HOW AI TESTS SOFTWARE AI CHECKS

Open this section in the presentation →

71 / 247

GDPR

AI coding agentCopyOpen in ChatGPT▶ PlayFind GDPR issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

Can customers really choose not to receive marketing?

The sign-up screen makes optional marketing consent mandatory to buy coffee. This deserves a consent review.

TestBucks · Create account

Email: alex@example.test

☑ I agree to optional marketing emails

Required to place an order

Consent should be a genuine choice.

EDPB · Consent guidance ↗
Copy imageDownload image

Confirm the lawful basis and context with a privacy specialist. AI can flag risks; it cannot certify GDPR compliance.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

72 / 247

WCAG

AI coding agentCopyOpen in ChatGPT▶ PlayFind WCAG issues in these TestBucks screenshots and other supplied artifacts. Inspect only; do not interact with the app.

The text is too faint to read.

Normal-size text in a captured style uses #AAAAAA on white—about 2.32:1 contrast, below the 4.5:1 AA minimum for normal text.

WCAG 2.2 · SC 1.4.3

Pickup instructions: wait at the side door.

2.32:1 → needs 4.5:1

W3C · Contrast (Minimum) ↗
Copy imageDownload image

Map evidence to WCAG criteria. Measure actual colors and review exceptions; one check is not a conformance audit.

Same captured evidence · Different check focus · No workflow executionSynthetic examples · Not a live test result
Open this section in the presentation →

74 / 247

LECTURE 1.12

Better findings, less noise

IN THIS LECTURE

Use known issues and focused review to improve the next check.

HOW AI TESTS SOFTWARE AI CHECKS

Open this section in the presentation →

75 / 247

TIPS · 01

Tip: Include known issues when asking for new ones.

Prevent duplicate reports before they are generated.

TestBucks Include known issues when asking for new ones. example screens
Copy imageDownload image
View full-size screenshot ↗
Copy imageDownload image
AI coding agentCopyOpen in ChatGPT▶ PlayKnown issue TB-017: “Logni” should be “Login.” Does the new Stores screenshot show the same issue? Preserve the new evidence without creating a duplicate report.
Copy includes the full task and output format.
TestBucks · Synthetic teaching exampleAI checks · Practical tips
Open this section in the presentation →

76 / 247

TIPS · 02

Tip: Test the state—not just the URL.

Count meaningful states—not just URLs. Keep state and capture time with every finding.

TestBucks Same URL. Different states. example screens
Copy imageDownload image
View full-size screenshot ↗
Copy imageDownload image
AI coding agentCopyOpen in ChatGPT▶ PlayCompare these cart states. Does the item count agree with the total after the failed removal? Explain what the captures support and what still needs testing.
Copy includes the full task and output format.
TestBucks · Synthetic teaching exampleAI checks · Practical tips
Open this section in the presentation →

77 / 247

TIPS · 03

Tip: Results appeared. Were they relevant?

A nonempty result list is not proof that search works. Compare it with the query and catalog.

TestBucks Results appeared. Were they relevant? example screens
Copy imageDownload image
View full-size screenshot ↗
Copy imageDownload image
AI coding agentCopyOpen in ChatGPT▶ PlayAre these search results relevant to “vanilla”? Compare the results with the catalog evidence and explain why or why not.
Copy includes the full task and output format.
TestBucks · Synthetic teaching exampleAI checks · Practical tips
Open this section in the presentation →

78 / 247

TIPS · 04

Tip: An error should help the customer recover.

Good error copy is part of usability. A proposed recovery still needs an execution test.

TestBucks An error should help the customer recover. example screens
Copy imageDownload image
View full-size screenshot ↗
Copy imageDownload image
AI coding agentCopyOpen in ChatGPT▶ PlayDo these error messages help the customer recover? Compare the observed and proposed wording. Is the next step clear? Flag unverified promises such as “Your cart is saved.” Judge the messages, not whether the retry works.
Copy includes the full task and output format.
TestBucks · Synthetic teaching exampleAI checks · Practical tips
Open this section in the presentation →

79 / 247

TIPS · 05

Tip: Find the bug before the code exists.

Check specifications, policies, and acceptance criteria—not only the finished interface.

TestBucks Find the bug before the code exists. example screens
Copy imageDownload image
View full-size screenshot ↗
Copy imageDownload image
AI coding agentCopyOpen in ChatGPT▶ PlayThese requirements promise both a full refund before pickup and no refunds after payment. Do they conflict for the same prepaid order? Identify the decision the product owner must make.
Copy includes the full task and output format.
TestBucks · Synthetic teaching exampleAI checks · Practical tips
Open this section in the presentation →

80 / 247

TIPS · 06

Tip: Parallel checks. One coherent report.

Divide the analysis, then reconcile the findings. Several perspectives—not several disconnected reports.

TestBucks Parallel checks. One coherent report. example screens
Copy imageDownload image
View full-size screenshot ↗
Copy imageDownload image
AI coding agentCopyOpen in ChatGPT▶ PlayReview the supplied evidence for privacy, security, and accessibility issues. Reconcile duplicate findings while preserving each check’s evidence. Keep distinct defects separate.
Copy includes the full task and output format.
TestBucks · Synthetic teaching exampleAI checks · Practical tips
Open this section in the presentation →

81 / 247

What we learned: AI checks.

01

Give AI evidence

Screenshots, code, logs, network captures, and data—not just a vague request.

02

Ask focused questions

Split privacy, security, accessibility, and other checks into separate calls. Reuse cached context.

03

Connect the artifacts

Compare pages and records. Dedupe shared bugs while keeping every affected location.

04

Challenge the findings

Check whether the evidence supports each issue. Separate observations from assumptions.

05

Make bugs actionable

Return OpenTest.ai bug objects with evidence, engineering ownership, and a concrete fix prompt.

06

Know what you checked

Inspecting a capture is not executing a workflow. Next, let AI operate the app.

Supply evidence → focus the check → review the finding → hand off the fix.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

82 / 247

PART 2
INTERACTIVE AI TESTS

From inspecting evidence
to operating the app.

Let the agent navigate, click, enter data, and check what happens.

External browserEmbedded browserParallel workers
Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

83 / 247

LECTURE 2.01

Operate the app. Verify the outcome.

IN THIS LECTURE

Drive the TestBucks browser and verify what each action actually changed.

HOW AI TESTS SOFTWARE INTERACTIVE AI TESTS

Open this section in the presentation →

84 / 247

Act. Observe. Verify the outcome.

Follow a user journey: click, enter text, navigate, and verify the outcome. Adapt the next action to the live application.

AI coding agentCopy for desktop agent▶ PlayUse your available browser-control tools to open the public TestBux practice shop at https://howaitestssoftware.com/testbucks/. Choose a vanilla latte, add it to the cart, then open checkout and enter the fictional pickup name Alex. Verify the drink in the order summary and the name in the pickup field. Stop before placing the order. Save evidence of what happened and report supported bugs as an OpenTest.ai JSON array. If browser control is unavailable, say so; do not simulate execution.
1 · Choose
TestBucks

Menu

Vanilla latte

Choose latte
↖
2 · Enter text
TestBucks

Checkout

Pickup name

Alex
Alex
↖
3 · Verify
TestBucks

Order summary

Vanilla latte · Alex

✓ Drink and name match
↖

Use an AI coding agent with browser-control tools. Confirm it can reach the public practice site and capture evidence before starting.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

85 / 247

The AI agent can drive the browser.

AI coding agentCopy for desktop agent▶ PlayOpen TestBucks. Add a latte to the cart and verify the drink, quantity, and price.
AI coding agent
NEXT ACTION

Task complete

✓ Correct drink ✓ Quantity 1 ✓ Price $4.50. The cart matches the request.
6 / 6 · COMPLETE
ACTION →
CDP(Chrome DevTools Protocol)Direct connectionAgent checks returned evidence
← OBSERVATION
CONNECTED BROWSER · TESTBUCKS
TestBucksCart (1)

Cart verified

TestBucks latte
✓ Latte added and verified
AI CHECK

No Selenium or Playwright scripts required. The agent chooses the next action; CDP sends browser commands and returns evidence.

Illustrative playback · Synthetic cart · No live agent executionBrowser tools and permission required
Open this section in the presentation →

86 / 247

Legacy frameworks were written
for humans, not AI.

Low-level browser APIs are complex. Frameworks make that complexity manageable for people writing tests.

HUMAN-WRITTEN AUTOMATION
Test code
Java · Python · TypeScript
→
Selenium · Playwrightdriver.findElement(...).click()
page.getByRole(...).click()
→
● ● ●CHROMIUM BROWSER
CDPBrowser control interface
TestBucks homepage inside a browser
AI-DRIVEN CONTROL
AI coding agent→
● ● ●CHROMIUM BROWSER
CDPBrowser control interface
TestBucks homepage inside a browser

AI can work with the low-level complexity.
More fine-grained control. No test-framework layer required.

Open this section in the presentation →

87 / 247

Use a real browser. Verify the result.

AI coding agentCopy for desktop agent▶ PlayUse an available external browser connection to test https://howaitestssoftware.com/testbucks/. Add a latte to the cart and verify the drink, quantity, and price. Save browser evidence. Stop before placing an order. If browser control is unavailable, report the blocker; do not simulate a run.
AI coding agent
Connecting to the authorized Chrome session…
Opening howaitestssoftware.com/testbucks/. The TestBucks homepage is loaded.
→
● ● ●   CHROME · SEPARATE WINDOW
howaitestssoftware.com/testbucks/
TestBucksYour coffee. Your way.TestBucks coffee cup
Order a latte
↖
Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

88 / 247

Keep the browser beside the agent.

AI coding agentCopy for desktop agent▶ PlayIf this agent provides an embedded browser, open https://howaitestssoftware.com/testbucks/ there. Add a latte to the cart and verify the drink, quantity, and price. Save browser evidence. Stop before placing an order. If no embedded browser is available, report that and use the external-browser exercise instead.
AI coding agent
CHAT
Opening the browser panel on the right…
TestBucks is loaded beside our conversation.
BROWSER PANEL / howaitestssoftware.com/testbucks/
TestBucksYour coffee. Your way.TestBucks coffee cup
Order a latte
↖

Keep the browser beside the conversation. No embedded browser? Use an external one.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

89 / 247

LECTURE 2.02

Connect your testing tools

IN THIS LECTURE

Use browser automation, Jira, and TestRail while keeping evidence and review in the workflow.

HOW AI TESTS SOFTWARE INTERACTIVE AI TESTS

Open this section in the presentation →

90 / 247

AI can use your existing testing tools.

TEST FRAMEWORKS

Selenium
Playwright

BUGS + TEST MANAGEMENT

Jira / Xray

TEST CASE MANAGEMENT

TestRail

AI coding agentCopy for desktop agent▶ PlayConnect to my approved testing tools. Retrieve the test cases and store new tests and findings in the selected project. Ask before writing.

Use approved connectors. Keep secrets in the secret store.

Illustrative TestBucks example · No live external writes
Open this section in the presentation →

91 / 247

AI can use Playwright to click in real time,
if needed or wanted.

AI coding agentCopy for desktop agent▶ PlayUse Playwright to open TestBucks, click Vanilla latte, add it to the cart, and verify the item. No real purchases.
AI coding agent

Choose the next action

→
PLAYWRIGHTgetByRole("button",
{ name: "Add to cart" })
.click()
→
BROWSER
TestBucks

Vanilla latte · $4.50

Add to cart ↖
✓ Cart: Vanilla latte × 1

The agent decides. Playwright performs the browser action. The result comes back for verification.

Illustrative TestBucks example · No live external writesIllustrative selector · Depends on the current app
Open this section in the presentation →

92 / 247

AI can write a confirmed bug to Jira / Xray.

AI coding agentCopy for desktop agent▶ PlayCreate a Jira bug for this confirmed TestBucks cart failure. Include expected versus actual behavior and evidence. Link it to the relevant Xray test execution. Show the draft before submitting.
AI AGENT

Confirmed finding

Two lattes appear after one Add to cart action.

→
APPROVED CONNECTOR

Map fields
+ attach evidence

→
JIRA BUG · EXAMPLE

TB-104

Duplicate cart item

Expected: 1 · Actual: 2
Evidence: screenshot + trace
Linked Xray execution: TB-82

Jira holds the bug. Xray connects it to test evidence. Use your project’s required fields and permissions.

Open this section in the presentation →

93 / 247

Read and write test cases in TestRail.

AI coding agentCopy for desktop agent▶ PlayRead the approved TestBucks checkout cases from TestRail. Propose missing variants for quantity, milk choice, and pickup time. Deduplicate them and show me the new cases before saving.
TESTRAIL → AI

Read existing cases

Order one latte

→
AI → CANDIDATES

Mutate + combine

1 or 2 drinks
Dairy or oat
Now or later

→
AI → TESTRAIL

Save approved cases

Intent, expected outcome,
scope, and source links

Keep the valuable test knowledge. Review generated permutations before adding more cases.

Open this section in the presentation →

94 / 247

LECTURE 2.03

From brittle scripts to adaptive tests

IN THIS LECTURE

Compare script repair with an agent that adapts its route to the same purchase goal.

HOW AI TESTS SOFTWARE INTERACTIVE AI TESTS

Open this section in the presentation →

95 / 247

They’re still not AI-first.

Using AI to operate the old workflow is not the only option.

  1. 01

    Read and write project-specific test intents.

  2. 02

    Generate dashboards from real execution evidence.

  3. 03

    Save, update, and track bugs in your own format.

Keep integrations where they help. Don’t make their data model the limit of your testing.

Illustrative TestBucks example · No live external writes
Open this section in the presentation →

96 / 247

AI-first bug tracking.

Your records. Your project.

Local JSON or Markdown, a Google spreadsheet, or an approved cloud store.

Ask AI to adapt the schema to your project—not the project to a rigid schema.

Local files: no dedicated tracker license, no mandatory cloud service, minimal setup.
bugs/cart-duplicate.json
{
  "intent": "Add one latte",
  "expected": "One cart item",
  "actual": "Two cart items",
  "evidence": ["cart.png", "trace.json"],
  "status": "fixed and retested"
}

With authorized source-code write access, AI can find → fix → retest without a separate ticket. Retain a useful change/evidence trail; your team may still require a formal record.

Illustrative TestBucks example · No live external writesStorage permissions, schema review, and AI usage costs still apply
Open this section in the presentation →

97 / 247

Generating Code for Test Cases.

The page changes. The flow changes. The test code needs repair.

CHECKOUT.SPEC.TS · PLAYWRIGHT EXAMPLE
await page.getByRole('button', { name: 'Add to cart' }).click();
await expect(page.getByText('Cart 1')).toBeVisible();
✓ Original selector works. Cart contains one latte.
● ● ●   TESTBUCKS / MENU v1
TestBucks vanilla latte

Vanilla latte

Espresso. Vanilla.
Your afternoon, sorted.

$4.50
Add to cart
Make it yours
Add drink
↖
1 · Original passes2 · Page redesign3 · Old selector fails4 · Code repairedPause animation

The original flow is one click: Add to cart → Cart 1.

Illustrative TestBucks example · No live external writesIllustrative UI and code sequence
Open this section in the presentation →

98 / 247

A new dialogue breaks legacy scripts.

AI coding agentCopy for desktop agent▶ PlayRun the existing latte script against both TestBucks builds. Keep its original steps unchanged.
BUILD 2 · BLOCKED
FIXED PLAYWRIGHT SCRIPT · ILLUSTRATIVE
await page.goto(TESTBUCKS_URL);await orderCoffee.click();await vanillaLatte.click();await addToCart.click();await expect(cart).toContainText("Vanilla latte");
✕ SCRIPT BROKEN — dialogue blocks this click
TESTBUCKS · SANDBOX
TestBucks Cart (0)

Menu

TestBucks latte
Vanilla latte
LIMITED TIME

Holiday special!

Discover this season’s drinks.

Not now
↖

This script does not handle the new overlay. A deliberately resilient script could—but that behavior must be maintained.

Illustrative TestBucks example · No live external writesIllustrative playback · No live browser automation
Open this section in the presentation →

99 / 247

AI can fix legacy script breaks—but why?

Why even have it break in the first place?

01 / SELECTOR FIX-UP

Find the element again.

Old selector → not found
AI locates the new control
Patch selector → rerun

The selector is repaired.
The next hard-coded assumption may still fail.

02 / FLOW FIX

Repair the route.

New holiday dialogue → blocked
AI adds a dismissal step
Patch flow → rerun

One fix can reveal another break:
selector → dialogue → timing → assertion.

Why build something you expect to break?
Let AI adapt the execution to the intent—not just repair the script afterward.

AI can still fail. Verify the outcome; don’t mistake adaptation for proof of correctness.
Illustrative TestBucks example · No live external writes
Open this section in the presentation →

100 / 247

AI-first test case execution.

AI coding agentCopy for desktop agent▶ PlayExecute the saved latte intent against the new TestBucks build and verify the cart.
BUILD 2 · VERIFIED
AI coding agent
Verified: the same drink, quantity, and price. Test passed.
✓ Outcome verified
TESTBUCKS · SANDBOX
TestBucks Cart (1)

Your cart

TestBucks latte
✓ Vanilla latte × 1 · $4.50
↖

Dismiss an optional interruption; preserve the original goal. Stop for real failures or consequential choices.

Illustrative TestBucks example · No live external writesIllustrative playback · No live browser automation
Open this section in the presentation →

101 / 247

LECTURE 2.04

Define an executable test intent

IN THIS LECTURE

Describe the goal, setup, and expected outcome in an OpenTest.ai test case.

HOW AI TESTS SOFTWARE INTERACTIVE AI TESTS

Open this section in the presentation →

102 / 247

AI-first intent test cases.

Save the outcome in plain English—not a frozen sequence of clicks.

AI coding agentCopy for desktop agent▶ PlayAdd one vanilla latte to the TestBucks cart. Verify the drink, quantity, and displayed price. Dismiss optional promotions if needed. Do not place an order.

Intent

A sentence + expected outcome
+ essential constraints

→

Live interpretation

Read today’s interface.
Choose the next action.

→

Verified outcome

Same goal.
Adaptable route.

Adapt the route. Preserve the expected outcome.

Illustrative TestBucks example · No live external writes
Open this section in the presentation →

103 / 247

OpenTest.ai test-case format.

otai/testcase · v1 · TestBucks example
{
  "title": "Add one vanilla latte",
  "goal": "One latte, $4.50; no order placed."
}
OPTIONAL STEP DETAIL · FIELD OUTLINE
"steps": [{
  "description": "What the user does",
  "thinking": "Brief test rationale",
  "action": "click",
  "target": "Add to cart",
  "value": "",
  "expected": "One latte in the cart"
}]

Keep the intent small.

title names the test. Add goal to make success and constraints explicit.

Steps are optional.

Specify them only when useful. Let the agent derive actions from the current interface.

Preserve the expected outcome.

When you include steps, use meaningful targets and explicit checks—not brittle selectors by default.

Portable JSON. A clear goal.
Not generated test code.

Field excerpt, not the full schema · Optional actions: navigate, click, fill, select, press, wait, assertOpenTest.ai ↗
Open this section in the presentation →

104 / 247

LECTURE 2.05

Turn evidence into a quality report

IN THIS LECTURE

Preserve the execution trail and build a report that supports a testing decision.

HOW AI TESTS SOFTWARE INTERACTIVE AI TESTS

Open this section in the presentation →

105 / 247

Keep the evidence behind every claim.

AI coding agentCopy for desktop agent▶ PlayLog every action taken. Include a brief rationale for why it was appropriate and why you used that method. Record the observed evidence for whether each step succeeded, and whether the overall flow achieved its goal. Preserve failures and uncertainty.
01

What happened

Actual actions, targets, and results—not just intended steps.

02

Why this action

A concise, context-specific rationale for the action and method.

03

What proves success

Evidence for each step and the complete user journey.

TESTBUCKS · ILLUSTRATIVE EXECUTION RECORD
ACTION
Clicked “Not now” on the holiday dialogue.
WHY / METHOD
The optional promotion blocked the latte menu. Used its visible dismiss control; no purchase or account change.
STEP EVIDENCE
After-click screenshot: dialogue absent. Menu controls visible and available again.
FLOW RESULT
Cart screenshot + DOM: vanilla latte × 1, $4.50. Requested outcome verified; no order placed.
Link each entry to its timestamp, tool result, and captured evidence.

Record actions, reasons, and evidence. Traditional tests can log these too.

Brief decision summaries—not hidden internal reasoningAI explanations are claims: retain evidence, redact secrets, and review.
Open this section in the presentation →

106 / 247

Turn evidence into a decision.

Your data. Your product.
Your branding.

Turn raw results into an executive summary, meaningful priorities, and a report your team actually wants to read.

AI coding agentCopyOpen in ChatGPT▶ PlayCreate a beautiful TestBucks Quality Report from these test results. Use our branding, summarize pass rates, and explain the important failures.
TestBucks Quality Brew circular logo TESTBUCKS / QUALITY ENGINEERING

TestBucks Quality Report

ILLUSTRATIVE RUN · 10 TESTS
70%passed · 7 / 10
3failed

Executive summary

Core ordering works. Hold release: a payment retry created a duplicate charge, and a customer saw another account’s order.

HIGH PRIORITY
Duplicate charge · Cross-account exposure

Also failed: mobile heading alignment. Lower impact—but still tracked.

Evidence → priorities → next actions
Open this section in the presentation →

107 / 247

PAUSE AND PRACTICE

Create a branded quality report

Exercise home
Review your result
Copy prompt + dataPaste into a desktop agent with browser access.▶ PlayReplay transformationSynthetic example · Your data → your branded report
01 / RAW RESULTS

10 tests. Three failures.

Browse menuPASS
Customize lattePASS
Update quantityPASS
Apply discountPASS
CheckoutPASS
Persist orderPASS
Keyboard navigationPASS
Payment retry: duplicate chargeFAIL
Account isolation: exposed orderFAIL
Mobile heading: 8px misalignmentFAIL
→
02 / AI SUMMARY + YOUR BRAND
TestBucks Quality Brew circular logo TESTBUCKS

Quality Report

70% passed · 7 of 10

Hold release.

Fix duplicate charges and cross-account exposure first.

Also failed: mobile heading alignment.
Lower impact. Still tracked.

Create and open a polished, self-contained HTML TestBucks Quality Report from this synthetic data: [["Browse menu","PASS"],["Customize latte","PASS"],["Update quantity","PASS"],["Apply discount","PASS"],["Checkout","PASS"],["Persist order","PASS"],["Keyboard navigation","PASS"],["Payment retry: duplicate charge","FAIL"],["Account isolation: exposed order","FAIL"],["Mobile heading: 8px misalignment","FAIL"]]. Use the official circular TestBucks Quality Brew logo (https://howaitestssoftware.com/testbucks/testbucks-logo.png), forest green, warm ivory, sage highlights and muted red for failures. Calculate totals and pass rate. Put an executive summary first: prioritize payment and account-isolation failures, and mention the lower-impact heading issue. Retain all ten results. Distinguish your release recommendation from measured results. Use subtle entrance and progress animations with reduced-motion support. Do not invent evidence. Verify the counts and make the report responsive and accessible.

Copy the prompt and all 10 results. Ask your AI coding agent to build and open the report.

Open this section in the presentation →

108 / 247

PART 2 / RECAP

What you’ve learned: Interactive AI tests.

01

Operate the app

Use a browser-capable agent to click, type, navigate, and observe.

02

Verify the outcome

A successful click is not proof that the customer goal was met.

03

Adapt to change

See how selectors and scripted flows break when TestBucks changes.

04

Use intent first

Preserve the goal while the agent chooses the current route.

05

Keep execution evidence

Record actions, results, failures, and tool limitations.

06

Explain the results

Turn raw outcomes into a branded report and useful summary.

Ask for an outcome → act → observe → verify → report.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

109 / 247

PART 3
AI CONTEXTUAL TESTING

Use the code.
Understand the risks.

White-box insight, dependencies, and business context inform what to test.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

110 / 247

LECTURE 3.01

Use code as testing context

IN THIS LECTURE

Use TestBucks source and product rules to choose and challenge boundary cases.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

111 / 247

The code becomes testing context.

Give the AI coding agent access to the source—even read-only.

checkout.tspayment-client.tsdependencies.lockorders → payments → pickupREAD-ONLY SOURCE
→

Boundary cases

Limits, branches, validation, and off-by-one assumptions.

Implementation risks

Network timeouts, missing retries, or retries that duplicate orders.

Dependency risks

Libraries, versions, external services, and failure assumptions.

Cross-component risks

Microservices disagreeing about state, contracts, or partial failures.

AI can survey and connect large amounts of code quickly—beyond what a tester can manually review in the same time. Access is not complete understanding: verify its findings against requirements and execution.

Open this section in the presentation →

112 / 247

Just put it in the project folder.

Start a new chat. Select Project TestBucks. Ask your question.

Project TestBucks

▤src/checkout.tsSOURCE CODE
▤specs/ordering.mdSPECIFICATION
▤business-plan.mdBUSINESS GOALS
▤test-plan.mdTEST STRATEGY
▤results/latest.jsonTEST RESULTS
▤incidents/payment-retries.mdKNOWN HISTORY
→HARNESS
NEW CHAT Project TestBucks ▾
What should we test before shipping the new checkout?
Finding relevant project context…
checkout.tsordering.mdlatest.json
EXAMPLE AGENT RESPONSE

Start with payment retries.

  • Code retries a failed payment.
  • The spec requires one charge per order.
  • The latest results omit timeout recovery.
Next test: successful charge, lost response, then retry.

The harness discovers, searches, and retrieves relevant files as the agent works.
No need to paste every document into every prompt.

Illustrative workspace · Use approved files; keep secrets out.Indexing varies by tool. Relevant context is not guaranteed—ask for file citations.
Open this section in the presentation →

113 / 247

The code is a clue. The user is the reason.

1 / READ THE IMPLEMENTATION

Last-name field

const name = raw.trim();
if (name.length > 20) reject();
if (!/^[A-Za-z]+$/.test(name)) reject();

The code tells us what happens today.

→
2 / CHECK THE BOUNDARY

TestBucks profile

abcdefghijklmnopqrst

20 letters: accepted

abcdefghijklmnopqrstu

21 letters: rejected

→
3 / CHALLENGE THE RULE

Whose name fails?

O’Example
Éxample

Real name formats rejected

A passing code-derived test can still miss a product problem.

Generate tests from the implementation, then question whether its rules serve the user.

TestBucks worked exampleIllustrative evidence, not a live AI run
Open this section in the presentation →

114 / 247

PAUSE AND PRACTICE

Challenge the implementation: form boundaries

Exercise home
Review your result
Loading prompt + form code…Open full form ↗

The code sets a limit.

<input maxlength="20" required>

function validateLastName(raw) {
  const name = raw.trim();
  if (!name)
    return 'Enter your last name.';
  if (name.length > 20)
    return 'Use 20 characters or fewer.';
  if (!/^[A-Za-z]+$/.test(name))
    return 'Use letters A–Z only.';
  return null;
}

Is it the right limit?
Ask for boundary tests—and challenge names this rule excludes.

Try 19 / 20 / 21 letters, spaces, accents, apostrophes, and hyphens.
Try the last-name boundary form

Copy includes the complete form implementation. Presets bypass typing maxlength. Synthetic inputs only; nothing is saved.

Open this section in the presentation →

115 / 247

LECTURE 3.02

Prioritize the risks

IN THIS LECTURE

Turn source-code observations into a short, evidence-backed testing priority list.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

116 / 247

Prioritize risks—not list length.

Connect code, requirements, and business stakes.

AI coding agentCopyOpen in ChatGPT▶ PlayAnalyze TestBucks risks using the source, specifications, test results, and business goals. Rank by impact and likelihood. Explain the evidence, missing coverage, and next test for each. Mark assumptions and uncertainty.
PERSON · INITIAL QUICK PASS

The obvious starting risks

Checkout fails.

Wrong price charged.

A starting list—not a limit on human expertise.
→ADD CONTEXT
AI-ASSISTED · STACK-RANKED CANDIDATES
CodeTest resultsSpecsBusiness goals
  1. 01
    Privacy leak responseNo spec, code, or tests found
  2. 02
    Duplicate payment on retryPayment client lacks idempotency
  3. 03
    LLM unavailable / error flowsNo fallback spec, code, or tests found
  4. 04
    Holiday traffic overloadPromotion goal; no peak-load evidence
  5. 05
    Order / payment state mismatchCross-service partial-failure gap
  6. 06
    Mobile checkout failuresLight coverage; flaky results
  7. 07
    Dependency outageExternal service; retry assumptions
  8. 08
    Discount boundary errorsPassing basics; limits untested

Rank by impact and evidence. Investigate the biggest gap first.

Open this section in the presentation →

117 / 247

PAUSE AND PRACTICE

Find risks in the source code

Exercise home
Review your result
Loading prompt + source…ⅡPAUSE & PRACTICEFull worksheet↗
TESTBUCKS CHECKOUT · ABBREVIATED EXCERPT
const { quantity, unitPrice } = request.body;
const total = quantity * unitPrice;

try {
  payment = await paymentClient.charge({
    amount: total
  });
} catch (error) {
  payment = await paymentClient.charge({
    amount: total  // Retry any failure
  });
}

const order = await orders.insert(...);
await email.send(...);
return { status: 200, orderId: order.id };
Dependency ranges express: "*" · axios: "latest"

Which risks matter most?

01 / Validation

Who controls the price?
Can quantity be negative or fractional?

02 / Retry safety

What if payment succeeds—but its response is lost?

03 / Dependencies

What if email fails after the order is saved? Which versions will run?

Your own code is even better.

Use approved source and product rules. Start read-only; exclude secrets.

Ask for ranked risks, exact code evidence, and the next best tests—not invented runtime results. Copy includes the full sample and requirements.

Open this section in the presentation →

118 / 247

LECTURE 3.03

Prove a focused property

IN THIS LECTURE

Use the refund example to distinguish a checked proof, a counterexample, and an unresolved question.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

119 / 247

Prove the important pieces.

AI + HUMAN REVIEWChoose a rule.TestBucks refunds require authentication and ownership.
→
AI PROPOSESFormalize it.State the property, domain, and assumptions.
→
LEAN CHECKSCheck the proof.A formal argument—not an AI confidence score.
AI does the investigation.
The proof checker checks the argument.
Code + requirements · Selective proof alongside testingPART 3 · SELECTIVE PROOF
Open this section in the presentation →

120 / 247

One wrong operator. Someone else’s refund.

TESTBUCKS · REFUND POLICY

Order #204 · Owner: Priya

Requester: Alex · Signed in

allow = authenticated or owner
BUG: Alex can authorize Priya’s refund.

Required: authenticated and owner.

Try every Boolean combination.

Signed inOwner“or”“and”
NoNoDenyDeny
NoYesALLOWDeny
YesNoALLOWDeny
YesYesAllowAllow
Counterexample → regression test → repair → recheck
Illustrative policy · Actual Boolean inputs only · Does not prove callers, APIs, or payment behaviorPART 3 · SELECTIVE PROOF
Open this section in the presentation →

121 / 247

No proof is not proof of a bug.

01 / PROVED

Keep the scope.

Exact property.
Explicit assumptions.
Independently checked evidence.

02 / COUNTEREXAMPLE

Replay the violation.

Verify against the implementation.
Keep a regression test.
Repair and recheck.

03 / UNRESOLVED

Keep the gap visible.

Timeout? Unsupported feature?
Incomplete formalization?
Not automatically a defect.

Define the property. Check the argument. Keep the assumptions.

CARBON /proof is an early bounded Boolean-verification path, with optional Lean model checking. Automated AI proof search is not enabled yet. A model proof is not a proof of production-code equivalence.

Proof scope and assumptions matter · Lean: lean-lang.org/faq/PART 3 · SELECTIVE PROOF
Open this section in the presentation →

122 / 247

LECTURE 3.04

Review the AI’s findings

IN THIS LECTURE

Compare human and AI findings, sample the results, and feed useful corrections back.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

123 / 247

AI changes the role of the tester.

AI does most of the execution and first-pass analysis.
Testing experts review, challenge, and communicate.

AI DOES THE WORK

Explore → test → collect evidence

Draft bugs, results, and a quality synopsis.

EXPERT REVIEWS

Check the output—not just the prose

Sample evidence. Challenge conclusions. Find omissions.

TEAM UNDERSTANDS

Communicate the quality picture

Explain risk, uncertainty, and the next decision.

Double-check the summary against the underlying results.
A polished synopsis is not proof that the product is ready.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

124 / 247

I’ve measured it: people and AI.

People testing directly—and people directing AI to test.
Compare what each finds, not just how much activity each performs.

92%

AI found
79% AI-only + 13% shared

8%

Expert-only contribution

Denominator: the combined findings in this working model—not all possible bugs.
8%13%79%AI onlyExpert onlyShared

Jason’s firsthand comparisons inform this discussion. The diagram reproduces the article’s campaign working model (79 / 13 / 8); it is not a reconciled result from the ten-minute workshop or a universal miss rate.

Source: “The 8% That AI Misses” · local articleConfirm experiment-level counts before presenting as a benchmark.
Open this section in the presentation →

125 / 247

Sample. Review. Improve the next run.

BUGS

Total hidden at 200% text

Email exposed in request URL

“Missing delivery option”

REVIEWER COMMENT

Pickup-only is intentional. This is a false alarm.

TEST RESULTS

Cart quantity matches intent · PASS

Retry does not duplicate order · PASS

Checkout completed · PASS

REVIEWER COMMENT

A click is not completion. Show the saved order.

Reviewed labels + reasons → improve the next run.

Illustrative human review · two approvals and one correction in each listRetain the evidence, reviewed label, and reason.
Open this section in the presentation →

126 / 247

LECTURE 3.05

Generate and review tests at scale

IN THIS LECTURE

Generate synthetic data and meaningful variants, expand affordable coverage, and review large result sets with AI and statistical sampling.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

127 / 247

AI can generate the test data, too.

Start with the rules. Generate values and expected outcomes together.

Example fixture: quantity is a whole number from 1–10; required pickup name is 1–40 characters.
Everyday dataBoundary dataInvalid data
QuantityPickup nameExpected outcome
1AlexAccept
2ZoëAccept
3李明Accept

Make it synthetic.

Invent names, orders, and accounts.

Make it varied.

Include scripts, boundaries, and missing values.

Make it reusable.

Save the values, seed, and expected results.

PART 3 · GENERATE AND REVIEW AT SCALETestBucks · Worked teaching examples
Open this section in the presentation →

128 / 247

Combine inputs. Mutate assumptions.

AI can expand one good test into a family of meaningful checks.

PERMUTATIONS / COMBINATIONS

3 sizes × 3 milks ×
2 temperatures × 4 quantities

72 candidate combinations

1/72 — Small · Dairy · Hot · Quantity 1

Show another combination
MUTATIONS

Change one thing.

Input: quantity 1 → 0.
Expected: reject the order.

Sequence: edit → pay becomes pay → edit.
Expected: no silent paid-order change.

Code: quantity ≤ 10 becomes quantity < 10.
The quantity-10 test should catch it.

Remove impossible combinations. Keep useful interactions and strong checks.

Input and sequence mutations vary tests. Code mutation testing asks whether tests detect an injected defect.

Open this section in the presentation →

129 / 247

“Won’t we have too many tests?”

That instinct comes from a world where every test was expensive.

Create→Execute→Maintain→Analyze

AI can do much of that work.

100tests
→
1,000tests
→
10,000tests

Why not buy orders of magnitude more coverage?

At 100× lower cost per completed case, the same budget buys 100× as many cases. Spend it on distinct risks, states, and data.

Open models and cheaper inference expand the opportunity. Measure compute, environments, retries, and review—not just tokens.

PART 3 · GENERATE AND REVIEW AT SCALETestBucks · Worked teaching examples
Open this section in the presentation →

130 / 247

“Who will read 10,000 results?”

You won’t read every result. You need a review system that scales.

AI ORGANIZES

Cluster and summarize.

Group duplicate failures. Link every claim to evidence. Surface uncertainty.

PEOPLE PRIORITIZE

Review consequential cases.

Investigate severe failures, novel behavior, and judge disagreements.

STATISTICS CHECKS

Audit a random sample.

Sample passes too. Measure agreement and uncertainty across risk slices.

20 reviewed results · 100 reviewed results · 400 reviewed results
96/100 agree · 96%95% Wilson interval: 90.2%–98.4%

Agreement is a signal. Investigate disagreement—and shared mistakes.

Manufacturing, polling, and clinical research also learn from samples. A confidence interval measures sampling uncertainty, not “the app is safe.”

Open this section in the presentation →

131 / 247

Who tests the AI doing the testing?

THE COMPANION COURSE

Testing
AI

Jason Arbon

Learn to evaluate AI-based systems.

Go deeper in Testing AI.

  • Design representative samples.
  • Read confidence intervals and variation.
  • Measure judge agreement and disagreement.
  • Calibrate rubrics against human review.
  • Turn evidence into a release decision.

Use AI to test more.
Learn how to trust the evidence.

PART 3 · GENERATE AND REVIEW AT SCALETestBucks · Worked teaching examples
Open this section in the presentation →

132 / 247

LECTURE 3.06

Balance cost, speed, and scale

IN THIS LECTURE

Choose where AI testing saves effort and where additional runs earn their cost.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

133 / 247

AI token usage and speed.

Costs fall.
Work gets faster.

Cost / task↓Work / secondTodayOver time →

Falling inference costs can make more testing affordable.

Smaller models.
Shorter waits.

GENERAL MODEL
● ● ●
● ● ●
● ● ●
✓
TASK-SIZED MODEL
● ●
● ●
✓

Use the smallest model that meets your quality bar. Measure it on your tests.

Open-weight models.
Run locally.

LOCAL AI · TESTBUCKS✓ Review code✓ Generate tests✓ Keep data local

No per-token API bill for local inference. Hardware, energy, and setup still cost.

Illustrative trends and timing—not a benchmark. Compare cost, latency, and correctness for your task.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

134 / 247

Your laptop can run the model.

1 / INSTALL

Ollama

Download for your machine.

Get Ollama →
→
2 / DOWNLOAD + RUN

Pick a local model

ollama run gemma3:4b
ollama run deepseek-r1:8b

Google Gemma 3 · DeepSeek R1 8B
Examples—not a hardware guarantee.

→
3 / TRY A SMALL TASK

TestBucks triage

“Classify this bug: checkout charged twice after a retry. Explain the risk.”

Downloaded local models can run offline.

Small tasks: try open models. Hard reasoning: start with frontier models.

Local models can work well for classification, extraction, and drafts—measure them on your examples. For risk analysis or re-architecture, my default is a frontier model. No per-token API fee locally; hardware and energy still cost. Download first; avoid cloud models/tools for offline use. Open weights ≠ identical licenses: Gemma has its own terms.

Open this section in the presentation →

135 / 247

Local does not mean neutral.

SAME TESTBUCKS TASK

Review our regional menu.

Compare names, language, country labels, and recommendations for customers in different regions.

English中文Other languages
Culture + languageWhose preferences become the default?
Politics + refusalsWhat is omitted, reframed, or refused?
Training + alignmentWhat did the model learn to favor?

Every model has biases. Test the exact model you deploy.

Studies of some DeepSeek models found Chinese-state-aligned framing and refusals on politically sensitive topics. That is evidence about tested models—not a rule about every Chinese model. Western models also show political and cultural biases. Compare matched prompts across languages; record versions, omissions, refusals, and customer impact.

Open this section in the presentation →

136 / 247

Teach a model your triage patterns.

Reviewed bug history→JSONL examples→Fine-tune + evaluate→Serve locally
JSONL = ONE JSON OBJECT PER LINE · SYNTHETIC TRAINING PAIRS
{"prompt":"TestBucks charged twice after retry.","completion":"High priority: duplicate charge."}
{"prompt":"TestBucks menu heading is misaligned.","completion":"Low priority: cosmetic alignment."}

This is a prompt/completion format. Match the trainer’s schema and chat template.

AI coding agentCopy for desktop agent▶ PlayInstall Ollama from its official site. Inspect my hardware and propose a compatible, fine-tunable open-weight model and training tool. Turn my authorized bug-triage history into reviewed JSONL examples; remove secrets and personal data. Split by incident into train, validation, and holdout test sets. Estimate resources and ask before paid compute. Fine-tune with a supported tool such as TRL/PEFT, compare against the base model on holdout cases, and check severe mistakes and bias. If it improves, export a supported format and serve it locally with Ollama. Do not upload private data or expose a public endpoint.

Ollama serves models; training happens separately. Plenty of data helps only if labels are good. Keep evaluation cases out of training.

Open this section in the presentation →

137 / 247

Tokens versus People.

Same completed task. Compare the dollars.Replay cost comparison

PeopleHuman effort
$100
TokensAI inference
$1–$10
$0$25$50$75$100

COST PER COMPLETED TASK · USD

$90–$99difference per task in this example.
Reinvest in more test coverage.

Illustrative dollar amounts—not a price quote or measured benchmark. Assume equivalent scope and quality. Add setup, tools, review, retries, and corrections when comparing total cost.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

138 / 247

AI testing: speed, availability, scale.

10–100×

Faster in Jason’s measured testing tasks.

Independent tasks and parallel workers can compress the same testing work.

HUMAN BASELINE · ILLUSTRATIVE40 hours of serial work
MonTueWedThuFri
One task at a time…
AI SCENARIO · SAME SCOPE / QUALITY24 minutes–4 hours at 100×–10×
Menu✓Search✓Cart✓Price✓Login✓Retry✓Menu✓Search✓Cart✓Price✓Login✓Retry✓Menu✓Search✓Cart✓Price✓Login✓Retry✓Menu✓Search✓Cart✓Price✓Login✓Retry✓
24 concurrent tasks · rapid completion cycles

Available 24/7. No waiting for a person. Run testing work in parallel with cloud workers.

Illustrative animation · Not a real-time benchmarkSame quality bar · More tasks in parallel
Open this section in the presentation →

139 / 247

LECTURE 3.07

Personas and skeptical review

IN THIS LECTURE

Turn a persona’s concerns into testable questions, then challenge the answers.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

140 / 247

Turn persona feedback into tests.

AI coding agent
AI coding agentCopy for desktop agent▶ PlayReview TestBucks checkout as a first-time buyer, a keyboard user, and an older customer carrying a small dog. Rate clarity, ease of use, and trust out of five. Explain friction and suggest checks. Label simulated feedback and distinguish observations from assumptions. TestBucks is a fictional, Starbucks-like coffee shop. Sample site: https://howaitestssoftware.com/testbucks/. Use your browser-capable desktop agent.
AI-SIMULATED PERSPECTIVE

First-time buyer

Understand the total before paying.

“Where are my promotion and delivery fee?”
Clarity★★★★★
Ease of use★★★★★
Trust★★★★★

Investigate → Check the price breakdown before payment.

AI-SIMULATED PERSPECTIVE

Keyboard user

Complete checkout without a mouse.

“Can I see focus—and return from the address dialog?”
Clarity★★★★★
Ease of use★★★★★
Trust★★★★★

Investigate → Verify keyboard navigation and focus return.

AI-SIMULATED PERSPECTIVE

Older dog owner

Plan pickup while carrying a small dog.

“Can I bring my dog inside before I order?”
Clarity★★★★★
Ease of use★★★★★
Trust★★★★★

Investigate → Check pet-policy information and pickup options.

Illustrative hypotheses—not customer research. Turn each concern into an observed test.

Adapted from the STARWEST persona demonstrationUse real evidence and real people to validate the findings.
Open this section in the presentation →

141 / 247

AI skepticism.

Testers question things—especially something doing work we used to do.

Who ever tested the human?

“Almost no testers I know have tested themselves versus AI. I have.”— Jason Arbon
YOU10:00
Same task.
Same time.
AI10:00
You only · Both · AI only
Compare valid findings—not just counts.
testers.ai/workshop/ ↗
Challenge both testers with the same evidence standard.testers.ai/workshop/
Open this section in the presentation →

142 / 247

LECTURE 3.08

Different paths. Stable outcomes.

IN THIS LECTURE

Separate useful variation in execution from an incorrect TestBucks outcome.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

143 / 247

Non-determinism: people vary, too.

Same TestBucks checkout. Different paths, words, and judgments.

TESTBUCKS · OBSERVED RESULT Payment timed out. The order status is unknown.
TESTER A
“I’ll retry and check for a duplicate charge.”
Recovery path
TESTER B
“I’ll check order history before trying again.”
State verification
REVIEW TOGETHER
“What does the payment record actually show?”
Shared evidence

We manage human variation with shared expectations, evidence, and review—not identical wording.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

144 / 247

Different paths. The same purchase intent.

“Add one medium vanilla latte with oat milk. Verify the cart. Do not pay.”

RUN A

Browse the menu

Menu → Vanilla latte → Customize

TestBucks latte

Medium · vanilla · oat · quantity 1

≡
RUN B

Search for a latte

Search → Vanilla latte → Customize

The same TestBucks latte

Medium · vanilla · oat · quantity 1

≠
RUN C

A different outcome

Menu → Latte → Add to cart

Large latte · dairy milk · quantity 2

Fails the intent

Flexible execution does not mean flexible requirements.

TestBucks worked exampleIllustrative evidence, not a live AI run
Open this section in the presentation →

145 / 247

Non-determinism: AI-specific variation.

Repeat the request. The model may choose a different response or route.

SAME PROMPT “Check whether TestBucks offers pickup.”
RUN 1
“Yes, pickup is available.”
Direct answer
RUN 2
“You can collect your order in store.”
Different wording · same meaning
RUN 3
“Delivery only.”
Contradiction · investigate

Sampling can vary outputs. Changed prompts, context, model versions, tools, or environments can also change results.

Illustrative responses · Not measured runsRecord the configuration and evidence for each run.
Open this section in the presentation →

146 / 247

Variation is useful. Wrong is still wrong.

Accept different routes and wording. Challenge different facts.

USEFUL VARIATION
Menu → Latte → Cart
Search → Latte → Cart
✓ Same intended outcome
UNSTABLE VERDICTS
Same evidence → PASS
Same evidence → FAIL
Investigate the disagreement.
Repeat → Compare evidence → Resolve uncertainty

Models learn human-created patterns; sampling is not simply an attempt to copy human inconsistency. Neither human nor AI variation excuses missed failures.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

147 / 247

You can make the AI pretty close to deterministic if you want to.

TestBucks: “Try a hot vanilla …”

latte
55.0%
cappuccino
25.0%
mocha
15.0%
espresso
5.0%
Next token: latteIllustrative draw 1
Pause parameter tour

All four words can be selected.

Toy probabilities, not a real model. These settings change variation, not truth.

Lower randomness ≠ guaranteed correctness or reproducibility.
Open this section in the presentation →

148 / 247

LECTURE 3.09

Judge meaning with evidence

IN THIS LECTURE

Use rubrics, independent judgments, and calibration to assess variable results.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

149 / 247

Check meaning—not identical wording.

AI coding agentCopyOpen in ChatGPT▶ PlayEvaluate these four TestBucks answers against the supplied pickup rule. Return a verdict for each, quote the evidence, and explain whether different wording changes the meaning. Do not browse or run the app.
“Yes.”✓ Same meaning
“Yes, you can collect it in store.”✓ Same meaning
“Absolutely—pickup is available.”✓ Same meaning
“No, delivery only.”✕ Contradiction
EXACT-STRING ASSERTIONanswer === "Yes."

Rejects two valid paraphrases.

AI + EXPLICIT RUBRIC

Check the meaning.

Accept the first three.
Reject the fourth.

Calibrate semantic judges. Keep exact checks where precision matters.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

150 / 247

AI can be the judge.

AI coding agentCopyOpen in ChatGPT▶ PlayEvaluate this TestBucks cart evidence against the supplied order requirement. Return PASS, FAIL, or INSUFFICIENT EVIDENCE, citing the exact mismatch. Do not browse or invent missing facts.
RUBRIC + EVIDENCE

One latte, $4.50.

Cart shows two lattes, $9.00.

→
LLM JUDGE

FAIL

Quantity contradicts the expected outcome.

>80% agreement

In the MT-Bench / Chatbot Arena study, GPT-4 matched human preferences at roughly the human–human agreement level.

LLMs are imperfect. Agreement is not truth, and these results are not a guarantee for software pass/fail decisions. Measure your judge on your tasks.

Open this section in the presentation →

151 / 247

Compare independent judgments.

AI coding agentCopyOpen in ChatGPT▶ PlayAudit these three judge votes against the same TestBucks requirement and evidence. Which votes are supported? Report the majority, then your evidence-based verdict and the missing information. Do not simulate independent model calls.
JUDGE AModel family A · configuration 1

PASS

Expected total is shown.

JUDGE BModel family B · configuration 2

PASS

Quantity and total match.

JUDGE CModel family C · configuration 3

UNCERTAIN

Evidence omits the selected size.

2 / 3 PASSMajority recommendation—not proof.
Investigate the missing evidence.

Different models can share biases. Three votes are not necessarily independent evidence.

Open this section in the presentation →

152 / 247

Measure the judges. Then improve them.

AI coding agentCopyOpen in ChatGPT▶ PlayCompare these four AI verdicts with the reviewed labels. Count false positives, false negatives, and exact agreement. Challenge any unsupported label. Rewrite the rubric to prevent these mistakes, then propose separate holdout cases. Do not claim the new rubric is validated.
Case / observed cartAI saysReviewed label
A · Medium · qty 2 · $9.00PASSFAIL
B · Medium · qty 1 · $4.50FAILPASS
C · Medium · qty 1 · $4.50PASSPASS
D · Size missing · qty 1 · $4.50PASSINSUFFICIENT EVIDENCE

Rule: one medium vanilla latte · quantity 1 · $4.50. All four carts identify Vanilla latte. Verify size, quantity, and total.

Copy includes all four cases, the rule, and metric definitions. Improve on these; validate on fresh holdout cases.

Open this section in the presentation →

153 / 247

Judge against evidence—not authority.

Who has the evidence for this decision?

AI coding agentCopyOpen in ChatGPT▶ PlayResolve this TestBucks disagreement using the product rule and evidence—not the reviewer’s identity. Should the issue be accepted, rejected, or left unresolved? Explain what would change your decision.
AN ASSIGNED PERSON

Context. Experience. Blind spots.

People bring local knowledge and accountability.

A BROADLY TRAINED MODEL

Many sources. Many perspectives.

Models bring broad patterns—not guaranteed truth.

Requirements + user needs + observed evidence.

People and models have blind spots. Neither is automatically right.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

154 / 247

Testing a medical device?
Who understands what?

Do you automatically know more about medicine than an AI with broad medical knowledge—just because you’re the tester?

THE TESTER’S ADVANTAGE

This device. This setting.

Intended use · requirements · hardware behavior · actual users · local failure history

THE MODEL’S ADVANTAGE

Breadth at your fingertips.

Medical concepts · published knowledge · possible failure modes · alternative explanations

AI has measurably outperformed human experts
on some evaluated knowledge and reasoning tasks.

Example: a randomized study found GPT-4 alone outperformed participating physicians on diagnostic-reasoning cases. That is not proof of medical-device testing competence.

Bring the domain knowledge and product evidence together.
Validate the judge. Don’t assume either side is the authority.

Open this section in the presentation →

155 / 247

PART 3 / RECAP

What you’ve learned: Contextual testing.

01

Read the implementation

Use source code and dependencies to identify likely risks.

02

Challenge the rules

Test boundaries and prove focused properties against explicit requirements.

03

Explore user perspectives

Use personas to expose different needs and friction.

04

Judge meaning

Vary inputs and recognize equivalent, correct outputs.

05

Challenge the judges

Investigate disagreement and false positives with evidence.

06

Prioritize the next test

Combine business impact, uncertainty, and missing coverage.

More context helps AI ask better questions—not just generate more tests.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

156 / 247

PART 4
TESTS BECOME INTENT

One intent.
Many ways to execute it.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

157 / 247

LECTURE 4.01

Keep the promise. Adapt the path.

IN THIS LECTURE

Convert procedural steps into a reusable intent with explicit expected outcomes.

HOW AI TESTS SOFTWARE TESTS BECOME INTENT

Open this section in the presentation →

158 / 247

PART 4 / WHAT YOU WILL LEARN

Keep the intent.
Change the execution.

01

Spot the coupling

See how manual steps and coded workflows become tied to one version of a product.

02

Make tests portable

Express the goal and expected outcome. Let an agent adapt the route across devices and applications.

03

Keep the evidence

Record journeys, reuse existing tests, and hand off reproducible findings—not just a claim that it worked.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

159 / 247

PART 4 / THE STARTING POINT

A manual test binds a person to a path.

TESTBUCKS · MANUAL CASE TC-014

Add a medium vanilla latte

Objective
Verify that the cart contains the selected drink at the correct price.
Setup
Empty cart. Medium vanilla latte costs $4.50. No extras.
Steps
  1. Open Menu → select Vanilla latte.
  2. Choose Medium → click Add to cart.
  3. Open Cart.
Verification
One medium vanilla latte · quantity 1 · item price $4.50.
Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

160 / 247

PART 4 / THE SAME CASE IN CODE

Automating the path hard-codes it.

C# · PLAYWRIGHT · ILLUSTRATIVE PAGETEST METHOD
[Test]
public async Task AddMediumLatte()
{
    await Page.GotoAsync(TestBucksUrl);
    await Page.Locator("#menu").ClickAsync();
    await Page.Locator("#vanilla-latte").ClickAsync();
    await Page.Locator("#medium").ClickAsync();
    await Page.Locator("#add-to-cart").ClickAsync();
    await Page.Locator("#cart").ClickAsync();

    await Expect(Page.Locator(".cart-item"))
        .ToHaveTextAsync("Medium vanilla latte × 1");
    await Expect(Page.Locator(".item-price"))
        .ToHaveTextAsync("$4.50");
}
New UI: #add-to-cart becomes #add-to-bag
Timeout → failed test → team investigation
Illustrative selectors and assertions; adapt to the actual app.
Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

161 / 247

PART 4 / FROM PROCEDURE TO INTENT

Keep the promise. Adapt the path.

TESTBUCKS · AN INTENT-BASED TEST

“Purchase a vanilla latte.”

A short prompt: the goal, expected outcome, and constraints.

Buy one medium vanilla latte from TestBucks using a simulated payment. Verify the saved order contains the right drink, quantity, and price, and that payment is recorded exactly once.
Goal + expected outcome→AI chooses the steps

Require a sequence only when the sequence matters.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

162 / 247

OpenTest.ai test-case format · refresher

otai/testcase · v1 · TestBucks example
{
  "title": "Add one vanilla latte",
  "goal": "One latte, $4.50; no order placed."
}
OPTIONAL STEP DETAIL · FIELD OUTLINE
"steps": [{
  "description": "What the user does",
  "thinking": "Brief test rationale",
  "action": "click",
  "target": "Add to cart",
  "value": "",
  "expected": "One latte in the cart"
}]

Keep the intent small.

title names the test. Add goal to make success and constraints explicit.

Steps are optional.

Specify them only when useful. Let the agent derive actions from the current interface.

Preserve the expected outcome.

When you include steps, use meaningful targets and explicit checks—not brittle selectors by default.

Portable JSON. A clear goal.
Not generated test code.

Field excerpt, not the full schema · Optional actions: navigate, click, fill, select, press, wait, assertOpenTest.ai ↗
Open this section in the presentation →

163 / 247

LECTURE 4.02

Reuse intent across surfaces

IN THIS LECTURE

Adapt one purchase intent across devices and similar apps without losing its checks.

HOW AI TESTS SOFTWARE TESTS BECOME INTENT

Open this section in the presentation →

164 / 247

Intent-based tests are portable across devices.

AI coding agentCopy for desktop agent▶ PlayBuy one vanilla latte. Verify the drink, quantity, price, and order confirmation.
DESKTOP · TESTBUCKS
TestBucksMenuRewardsStoresAccountCart
⌕ Search drinks
Vanilla latte
+↖
ESPRESSO CLASSICS

Vanilla latte

Espresso, steamed milk,
and a little vanilla.

SmallMediumLarge
Milk: Whole ▾
$4.50Add with + on the photo

Review your cart

Vanilla latte
Vanilla latte

Medium · Whole milk

−   1   +   Remove
$4.50
Promo code +
Pickup: Downtown
Pay $4.50↖
ORDER #104

Thanks! Your latte is on its way.

Vanilla latte
Vanilla latte × 1

Medium · Paid $4.50
Pickup: Downtown

✓ Vanilla latte purchased
View receiptTrack orderOrder again
Photo + → Cart & payment → Order confirmation
SAME
INTENT
↔

Different layout.
Different steps.
Same outcome.

MOBILE
TestBucks
STEP 1 / 3

Open the menu

Vanilla latte

Coffee → Lattes

Choose vanilla↖
STEP 2 / 3

Quick checkout

Vanilla latte

Vanilla latte · $4.50

Pay $4.50↖
STEP 3 / 3

Ready for pickup

Vanilla latte

1 vanilla latte · Paid

See order↖
✓ Vanilla latte purchased
Open the menu → Quick checkout → Ready for pickup

Same intent. Different devices and implementations. AI works out the route.

Animated practice example · Simulated purchaseDesktop + mobile · One saved intent
Open this section in the presentation →

165 / 247

Intent-based tests travel across similar apps.

AI coding agentCopy for desktop agent▶ PlayBuy one vanilla latte. Verify the drink, quantity, price, and order confirmation.
CATALOG ORDERING
TestBucks
Coffee · Bakery · Rewards
Vanilla latteVanilla latte · $4.50
+ Add to bag↖
SHOPPING BAG / 1 ITEM

Your daily coffee.

Vanilla latte × 1
Pickup Downtown
Total $4.50
Pay for order↖
ORDER #104

Thanks, coffee lover.

1 vanilla latte
Paid $4.50
Downtown pickup
✓ Order confirmed
Browse product → Add to bag → Pay
BUILDER ORDERING
Testin’ Donut
LET’S GET YOU GOING

Where’s your pickup?

⌕ City or ZIP code
Downtown0.4 mi · Ready in 5 min
Order here →↖
Central Station · 1.2 mi
STORE ✓   /   DRINK   /   PAY

Build your latte

Hot ●Iced ○
SmallMediumLarge
Flavor Vanilla ▾
Express pay · $4.25↖
PICKUP NUMBER27You’re in!1 medium vanilla latte
Paid $4.25 · Downtown
✓ Order confirmed
Choose store → Build drink → Express pay
QUICK-ORDER ORDERING
Tim Testons
⌕ Search: vanilla latte
MENU MATCHES
Vanilla latte$4.75
+↖
Vanilla cold brew$4.25
Menu   /   Offers   /   My order
MENU / VANILLA LATTE

Make it yours

Size Medium ▾
Milk Whole ▾
Quantity −   1   +
Place order · $4.75↖
TAKEOUT / MAIN STREET

See you soon.

✓ Paid   →   Preparing
Vanilla latte × 1
Medium · $4.75
✓ Order confirmed
Search menu → Customize sheet → Collect

Three coffee shops. Three different flows. One test intent.
Save what you want verified—not each app’s clicks.

Fictional coffee shops · Animated simulated purchasesOne intent → app-specific execution
Open this section in the presentation →

166 / 247

LECTURE 4.03

Record a journey. Replay its intent.

IN THIS LECTURE

Extract the purpose of a recorded TestBucks journey and replay it through a changed interface.

HOW AI TESTS SOFTWARE TESTS BECOME INTENT

Open this section in the presentation →

167 / 247

Record the journey. Save the intent.

LEGACYRecord clicks→The interface changes→✕ Playback breaks
01 / DEMONSTRATE

Watch me order.

Record the vanilla-latte journey.

→
02 / SAVE INTENT

Keep the goal.

Buy one vanilla latte. Verify the item, price, and confirmation.

→
03 / AI PLAYBACK

Work out today’s steps.

AI follows the intent through the current interface.

✓ Intent completed
AI coding agentCopy for desktop agent▶ PlayWatch me order a vanilla latte. Save what I demonstrate as an intent-based test, including what success looks like. Execute that saved intent next time.

With desktop observation enabled, the coding agent can watch your workflow.
Ask it to save the intent—not a brittle recording of clicks.

Open this section in the presentation →

168 / 247

PAUSE AND PRACTICE

Record once, replay intelligently

Exercise home
Review your result
Copy prompt for your AI coding agentPaste into a desktop agent with browser access.▶ PlayPaste it into a browser-capable agent. Run it there.
1 · Execute a flow→2 · Save the intent→3 · Replay it
Use your browser tools to explore https://howaitestssoftware.com/testbucks/. Find a vanilla latte and inspect its sizes and customization options without adding it to the cart.

Record the flow you actually execute. Save its goal and expected outcomes as a JSON array of OpenTest.ai test-case objects in latte-intent.json: https://opentest.ai/#testcase. Preserve required constraints, not selectors or a fixed click path.

Then start fresh and execute that saved intent again. Choose the current controls dynamically. Keep the intent unchanged; save evidence separately and compare the two runs.

Use the public fictional TestBucks practice shop. Begin each run at Home with the customization dialog closed. Do not submit orders or payments. Report PASS, FAIL, or BLOCKED with evidence; never invent success.

Same workspace for both runs. No browser tools? Enable them first. An unchanged site demonstrates replay—not adaptation to a changed UI.

Open this section in the presentation →

169 / 247

LECTURE 4.04

Turn legacy tests into reusable intent

IN THIS LECTURE

Keep fix-ready findings and preserve meaningful coverage when converting old scripts.

HOW AI TESTS SOFTWARE TESTS BECOME INTENT

Open this section in the presentation →

170 / 247

OpenTest.ai bug format · refresher

otai/bug · v1 · ARRAY OF ISSUES
[
  {
    "bug_title": "Pay button overlaps total at 200% text",
    "bug_reasoning_why_not_a_bug": "Check whether browser zoom caused the overlap",
    "what_type_of_engineer_to_route_issue_to": "Checkout UI engineer",
    "prompt_to_fix_this_issue": "Reflow checkout into one column. Retest enlarged text and keyboard access."
  }
]

Illustrative example with selected fields, not a finding from the screenshot exercise.

opentest.ai/#bug-format

Challenge the finding

Keep a counter-argument with the issue.

Route the work

Identify the engineering specialty needed.

Include a fix prompt

Give the next agent a concrete repair task.

Carry the evidence

Add page, console, and network context when available.

Adapted from the STARWEST OpenTest.ai schema slideSelected fields · Consult the full schema for validation
Open this section in the presentation →

171 / 247

AI-format bugs are ready to fix.

OPENTEST.AI BUG

Duplicate latte in cart

Expected
One latte after one Add action.
Actual
Two lattes appear.
Evidence
Screenshot, request trace, reproduction.
→
SAVE FOR THE TEAM

Jira

Store the structured issue and evidence.

→
OR PASS IT BACK IMMEDIATELY

AI coding agent + write access

Read bug→Fix code→Retest

✓ One latte. One Add action. Verified.

AI coding agentCopyOpen in ChatGPT▶ PlayUse the OpenTest.ai bug format schema to reproduce the failure, fix the code in the authorized workspace, and rerun the test. Verify the expected outcome and check for regressions.

A game changer: take the tester—and the developer—out of the routine find–fix–retest loop.

The farthest-left shift possible.

Structured evidence → actionable fix → verified resultAuthorized code changes · Existing review and release controls remain
Open this section in the presentation →

172 / 247

Keep the coverage. Replace brittle steps.

Millions invested in frameworks, test cases, and automation?
Keep the knowledge. Bring it forward.

PUT IT IN THE PROJECT FOLDER

Your existing test assets

Java + Selenium automation
Manual test-case definitions
Frameworks, assertions, and data

→AI CONVERTS
OPENTEST.AI TEST-CASE FORMAT

AI-first intent definitions

{
"title": "Order a vanilla latte",
"goal": "One latte purchased;
correct price and confirmation."
}

Preserve the goal and expected outcome.
Let AI execute the steps.

AI coding agentCopyOpen in ChatGPT▶ PlayRead the legacy tests in this folder. Convert them to OpenTest.ai intent-based test cases. Preserve the business rules, assertions, data variations, and expected outcomes. Save the intent definitions for AI execution.

Yes, AI can port Java + Selenium to TypeScript + Playwright.

The bigger move: reuse your investment as intent—not another generation of scripts.
AI can do almost all of the transformation for you.

Open this section in the presentation →

173 / 247

PAUSE AND PRACTICE

Convert legacy scripts to intent tests

Exercise home
Review your result

Choose one. Copy the prompt into your AI coding agent.

OPTION 1 / BRING YOUR OWN

Already have scripts?

Copy · Convert my scriptsPaste into a desktop agent with browser access.▶ Play

Attach your scripts or point the agent to their folder.

  • Preserve goals, assertions, and constraints.
  • Replace brittle steps with OpenTest.ai intents.
  • Map coverage and flag gaps.

Convert the existing test scripts I attach or identify in this workspace into intent-based tests. Read them without modifying the originals. Preserve their goals, business assertions, essential ordering, and safety constraints—not brittle selectors, fixed sleeps, or incidental click paths. Flag ambiguous requirements; do not guess. Return a JSON array of OpenTest.ai otai/testcase v1 objects using https://opentest.ai/#testcase. Save it as converted-intents.json and map each intent to its source test. Explain any coverage gaps. This is conversion, not execution; do not claim tests passed.

OPTION 2 / START WITH TESTBUCKS

No scripts? Make five.

Copy · Generate + convert five testsPaste into a desktop agent with browser access.▶ Play

Java + Selenium → intent-based tests

  • Inspect TestBucks in the browser.
  • Generate five Java + Selenium tests.
  • Convert to intents; check every assertion.

Inspect TestBucks, a fictional Starbucks-like coffee shop, at https://howaitestssoftware.com/testbucks/. Use your browser tools to understand the current UI. Generate five short Java/Selenium tests: browse the menu, customize a latte, add it to the cart, change quantity, and remove an item. Use observed controls and meaningful assertions; flag unsupported features instead of inventing them. Then convert all five scripts to a JSON array of OpenTest.ai otai/testcase v1 objects using https://opentest.ai/#testcase. Save the Java files and testbucks-intents.json. Show how each assertion survived without hard-coded selectors or click paths. Use synthetic data; do not submit orders or payments. Distinguish generated code from tests actually executed.

Review the mapping: did every meaningful assertion survive? Conversion is not proof that the new tests pass.

Open this section in the presentation →

174 / 247

LECTURE 4.05

Make outcomes observable

IN THIS LECTURE

Expose useful TestBucks state so a test can verify the result reliably.

HOW AI TESTS SOFTWARE TESTS BECOME INTENT

Open this section in the presentation →

175 / 247

Make state observable. Make tests reliable.

TestBucks: expose cart state, name controls, and reset test data.

THE OLD HANDOFF

Ask. Explain. Wait. Maintain.

Design test interfaces.
Request markup and data IDs.
Coordinate changes with engineers.
Maintain the testing hooks.

AI coding agent

“Make this application testable.”

✓ Stable controlsAccessible names + data-testid
✓ Repeatable setupSynthetic fixtures + reset hooks
✓ Observable outcomesStructured logs + explicit states
✓ Controllable failuresInject timeouts + dependency errors
AI coding agentCopyOpen in ChatGPT▶ PlayMake TestBucks easier to test. Add stable identifiers, repeatable test data, clear outcome signals, and test-environment hooks for failures. Preserve product behavior. Verify the changes.

Verify the original behavior after improving the testing hooks.

Open this section in the presentation →

176 / 247

PAUSE AND PRACTICE

Make TestBucks more testable

Exercise home
Review your result

One small change: make the cart total easy to find reliably.

Loading prompt + TestBucks source…Paste into your AI coding agent.
BEFORE / DEPENDS ON THE LAYOUT.cart > div:nth-child(4)
→
AFTER / NAMES THE MEANING[data-testid="cart-total"]
Make a separate copy of TestBucks. Add a stable data-testid="cart-total" to the final cart total—even after the cart re-renders. Keep its appearance and behavior unchanged. Verify the total can be found after changing quantity.

Done when: the total is easy to locate, its value updates correctly, and the original app is untouched. Selectors above are illustrative.

Open this section in the presentation →

177 / 247

LECTURE 4.06

Plan a bounded load test

IN THIS LECTURE

Define traffic, metrics, and stop limits before asking agents to coordinate a load test.

HOW AI TESTS SOFTWARE TESTS BECOME INTENT

Open this section in the presentation →

178 / 247

Ramp safely. Measure real outcomes.

Agree on traffic, duration, spend, and stop limits first.

AI coding agent

Plan. Coordinate.
Analyze.

Ramp the traffic.
Find the failure modes.

→
SUB-AGENT 1Browse menuHTTP traffic ↗
SUB-AGENT 2Search drinksHTTP traffic ↗
SUB-AGENT 3Sign inHTTP traffic ↗
SUB-AGENT 4Update cartHTTP traffic ↗
SUB-AGENT 5CheckoutHTTP traffic ↗
SUB-AGENT 6Order historyHTTP traffic ↗
→
TEST ENVIRONMENT

TestBucks server

Latency · Errors · CPU
Memory · Queues · DB

Record + replay authenticated test sessions↔Correlate failures with logs, traces, and operational data
AI coding agentCopy for desktop agent▶ PlayLoad-test the approved TestBucks staging environment with parallel sub-agents. Record and replay synthetic authenticated sessions. Ramp to the agreed traffic limit, then stress within the approved ceiling. Stop at the error or resource thresholds. Read server metrics and logs, and explain the bottlenecks and failure modes.

Measure latency, errors, and correct orders—not just traffic.

Use test accounts · Agree load, duration, budget, and stop limitsRead-only operational access · No production traffic by default
Open this section in the presentation →

179 / 247

LECTURE 4.07

Inject a fault. Verify recovery.

IN THIS LECTURE

Lose a simulated payment response, retry, and check for exactly one charge and order.

HOW AI TESTS SOFTWARE TESTS BECOME INTENT

Open this section in the presentation →

180 / 247

AI Fault Injection.

Once expensive and rarely used: understand the implementation,
build mocks, and emulate failures deep in the dependencies.

01 / ISOLATE

Clone the source.

Original source 🔒
↓
Disposable test copy

Keep the original untouched.

02 / INJECT + RUN

Ask for different faults.

DependencyTimeout / unavailable
Browser / OSDenied access / failed storage
MemorySimulated allocation failure
Data filesMalformed / truncated input
03 / ANALYZE

How did it cope?

  • Recovered cleanly?
  • Preserved user data?
  • Explained the failure?
  • Avoided duplicate actions?

Evidence → failure modes → fixes

AI coding agentCopy for desktop agent▶ PlayCreate an isolated copy of TestBucks. In that copy only, inject dependency timeouts, storage failures, simulated memory failures, and malformed data. Run each fault separately, compare with the baseline, and report how the app detects, handles, and recovers from it. Keep the original code and production untouched.

AI can add the faults, execute the runs, and analyze resilience.

Open this section in the presentation →

181 / 247

PAUSE AND PRACTICE

Inject a payment timeout and verify recovery

Exercise home
Review your result

The payment went through. The response didn’t. What happens when we retry?

Loading prompt + TestBucks source…Run this in your AI coding agent.
1 / INJECT

Lose the response

Record a mock charge.
Then trigger a timeout.

→
2 / RETRY

Try again

Retry the same purchase
through the browser.

→
3 / VERIFY

One charge. One order.

Check the stored records,
not just the success message.

In a separate local TestBucks copy, simulate a successful payment whose response is lost. Retry the purchase and verify it creates only one charge and one order. Show the evidence.

The shop’s built-in timeout creates no charge. This exercise adds a different fault: charge accepted, response lost. Inspect the ledger after retry.

Open this section in the presentation →

182 / 247

PART 4 / RECAP

What you’ve learned: Tests become intent.

01

Save the purpose

Keep goals, setup, expected outcomes, and safety constraints.

02

Reuse across surfaces

Apply the same intent across devices and similar apps.

03

Record and replay

Extract intent from a journey, then adapt to a changed interface.

04

Make findings fix-ready

Include evidence, ownership, repair prompts, and retest criteria.

05

Improve testability

Expose meaningful state so success can be verified.

06

Explore failure safely

Use isolated copies for fault injection and bounded load tests.

Keep the meaning. Adapt the execution. Verify the promise.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

183 / 247

PART 5
THE AI TEST HARNESS

From a prompt
to an orchestrated team.

PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

184 / 247

LECTURE 5.01

Coordinate the testing workflow

IN THIS LECTURE

Explain how a harness assigns work, verifies completion, and records progress.

HOW AI TESTS SOFTWARE THE AI TEST HARNESS

Open this section in the presentation →

185 / 247

What is an AI Test Harness?

A coding-agent harness turns an LLM chat into sustained work.
A test harness does the same for the whole quality workflow.

BEYOND CHAT

Long-running work.

State, process, tools, and multi-step reasoning across a long time horizon.

NOT A TEST FRAMEWORK

Control the whole workflow.

Coordinate agents, frameworks, data, evidence, and completion checks.

01Risk analysis✓ Evidence saved
02Test planning✓ Evidence saved
03Test creation✓ Evidence saved
04Test execution✓ Evidence saved
05Reporting✓ Evidence saved
06Confidence analysis✓ Evidence saved

A long prompt can skip steps or stop midway.
The harness tracks each step, saves progress, and resumes unfinished work.

PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

186 / 247

Assign. Verify. Record the outcome.

A quality team needs a repeatable workflow.

AI coding agentCopy for desktop agent▶ PlayA new TestBucks build is ready. Run the quality workflow and report what completed, what failed, and what remains blocked.
ONE REQUEST

New build

New project or change

→
HARNESS / TEAM LEAD

Orchestrate.

Assign → sequence → verify → persist

→
WHOLE TEAM

Verified progress

Completed · Failed · Blocked

01Risk analysis✓ Evidence saved
02Test planning✓ Evidence saved
03Test creation✓ Evidence saved
04Test execution✓ Evidence saved
05Reporting✓ Evidence saved
06Confidence analysis✓ Evidence saved
PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

187 / 247

AI Test Harness Reference Implementation

Carbon logo
AI TEST HARNESS

CARBON

A quality workflow inside your AI coding agent.

Also available in the cloud
and OpenAI marketplaces.

testers.ai/carbon/ ↗

Use the official website for current setup, supported agents, workflows, terms, and privacy controls.

PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

188 / 247

LECTURE 5.02

Give specialists context and direction

IN THIS LECTURE

Combine focused agents, project knowledge, and explicit testing priorities.

HOW AI TESTS SOFTWARE THE AI TEST HARNESS

Open this section in the presentation →

189 / 247

AI Test Harness Sub-agents

Broad knowledge. Focused specialists. One coordinated team.

AI-generated code AI testing sub-agent
AI-generated code
Security AI testing sub-agent
Security
OWASP AI testing sub-agent
OWASP
Accessibility AI testing sub-agent
Accessibility
Usability AI testing sub-agent
Usability
Performance AI testing sub-agent
Performance
Content AI testing sub-agent
Content
Localization AI testing sub-agent
Localization
Data integrity AI testing sub-agent
Data integrity
Privacy / PII AI testing sub-agent
Privacy / PII
GDPR AI testing sub-agent
GDPR
AI chatbot AI testing sub-agent
AI chatbot
Jay AI test managerAI TEST MANAGER

Jay

Shared context.
Focused work.
One workflow.

AI testing sub-agents—not human reviewers. Jay coordinates their focused work.

PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

190 / 247

AI Test Harness Knowledge

Bring the knowledge the model could not learn from the public web.

How AI Tests Software book coverTesting AI book coverHow Google Tests Software book cover
Books + best practicesHow AI Tests Software · Testing AI · How Google Tests Software
→
Internal workflowsYour review, release, and escalation process
→
In-house contextArchitecture, terminology, and team priorities
→
Private knowledgeIncident history, product rules, and workarounds
→
AI TEST HARNESS

Your way of testing.

Apply relevant knowledge at the right workflow step.

✓ Books + best practices✓ Internal workflows✓ In-house context✓ Private knowledge

Reusable expertise + private project context—not a fresh start every time.

PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

191 / 247

AI Test Harness Steering

Select the installed workflow. Your words steer it.

AI coding agentCopy for desktop agent▶ PlayUse the installed CARBON quality workflow. If unavailable, report CARBON NOT_RUN. Run TestBucks locally. Skip load testing this time. Focus on payment retries. Use synthetic orders and the sandbox gateway. Ask before changing code.
WHERELocal TestBucks only
SCOPEPayment retries; skip load
SAFETYSynthetic data + sandbox
AUTHORITYAsk before code changes

Keep the repeatable process. Adapt the scope, priorities, and permissions.

PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

192 / 247

LECTURE 5.03

Save evidence. Compare runs.

IN THIS LECTURE

Use saved TestBucks results to verify fixes, find regressions, and improve the next run.

HOW AI TESTS SOFTWARE THE AI TEST HARNESS

Open this section in the presentation →

193 / 247

Remember the run. See what changed.

TESTBUCKS / Individual results → evidence across builds

TWO INDIVIDUAL RUNS

Build 41

48 / 50

Payment retry + cart total fail.

Results · traces · build + settings

Build 42

49 / 50

Both fixed. New mobile layout failure.

Results · traces · build + settings

One-off prompt:
“What happened this time?”

→
N > 2 SAVED RUNS / THE EXTRA VALUE
414243444546
TrendCheckout latency is rising.
RecurrenceMobile failure in builds 42 + 43.
Not just one observation.
New riskRollback risk first seen in build 46.
No mitigation evidence yet.
NEW
Confidence over timePayment fix holds across builds 42–46.
Repeated, relevant evidence supports trust.
5 runs

A snapshot tells you what happened. History reveals the pattern.

Illustrative history · Compare test IDs, scope, and environments. Repeated runs are not automatically independent; confidence is not a pass rate.

PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

194 / 247

A saved run makes the next run smarter.

RUN 41 / SAVED EVIDENCE

Retry duplicates a charge

TestBucks order TB-104
Simulated charges: 2

FAIL · one checkout, two charges

Keep the request ID, trace, build, and reproduction intent.

→
RUN 42 / TARGETED RETEST

Same intent. New build.

Inject response timeout
Retry with the same request ID

PASS · exactly one charge

Verify persisted state, not just the success toast.

→
COMPARE THE EVIDENCE

Fix plus a regression

Duplicate charge fixed

Checkout latency: 2s → 9s

The harness retrieves prior results and flags the new slowdown.

“The test passed” is only part of the release story.

TestBucks worked exampleIllustrative evidence, not a live AI run
Open this section in the presentation →

195 / 247

Two fixes. One small regression.

TestBucksRUN 41 → RUN 42Same 50 checks · matched environmentReplay comparison
IMPROVED / DUPLICATE CHARGES

2 → 0

Duplicate charges per 20 retry trials.

3839404142
FAIL → PASS · retry fix verified
IMPROVED / CART TOTAL

3 → 0

Incorrect totals across 20 cart scenarios.

3839404142
FAIL → PASS · calculation fix verified
REGRESSED / MOBILE LAYOUT

0 → 8 px

Cart heading shifted. Checkout still works.

3839404142
PASS → FAIL · cosmetic issue
HARNESS / RELEASE RECOMMENDATION

“Two things got better; one got worse. I recommend release after the owner accepts the remaining layout issue: the payment and pricing fixes passed their reruns.”

48 → 49 passing checks. No known critical blockers; accept and track the layout issue.
49/50Checks passed

Illustrative data · Chart x-axes: run number · 49 of 50 checks passed. This pass rate is not a probability that the release is safe. Release owner decides.

PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

196 / 247

Save what you learned. Retrieve it next run.

TestBucks: remember the duplicate-charge failure and its verified repair.

LEARN FROM REVIEW

Keep the judgment.

👍 Confirmed: duplicate charge
👎 Rejected: pickup time is intentional

Keep the reason, scope, and evidence.

LEARN FROM FAILURES

Remember weak spots.

Retry handling · Order duplication
Known timeout · Saved workaround

Retrieve past failures before the next run.

Human review → Persistent knowledge → Retrieve next run → Better triage

Save the reason and evidence. Re-check when the context changes.

PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

197 / 247

LECTURE 5.04

Build a release recommendation

IN THIS LECTURE

Combine risk, business goals, baseline quality, and test evidence into a release recommendation; calculate a weighted 0–100 quality score.

HOW AI TESTS SOFTWARE THE AI TEST HARNESS

Open this section in the presentation →

198 / 247

Investigate what the green checks missed.

Confidence also measures what evidence is missing.

Build a release-confidence report ↗
TESTBUCKS / CURRENT TESTS100%

of these tests pass.

✓ PASS✓ PASS✓ PASS✓ PASS✓ PASS✓ PASS×

Enough evidence
to ship?

OVERALL AI CONFIDENCE
28/ 100HOLD

Duplicate-charge risk confirmed.
Retry fix + verification missing.

Illustrative risk-based score
01 / QUESTION

What did we miss?

Payment retries are untested. What if payment succeeds but the response is lost?

02 / INVESTIGATE

Interrupt. Retry. Verify.

Use the sandbox. Compare payment records with the order—not just the receipt.

03 / REASSESS

One order. Two charges.

HOLD. Fix retry idempotency. Independently verify one charge per order, then reassess.

AI coding agentCopy for desktop agent▶ PlayAssess TestBucks release confidence. Identify missing evidence and unresolved risks. Investigate the highest-risk gap, challenge the result, and recommend the next action.
PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

199 / 247

PAUSE AND PRACTICE

Build a release-confidence report

Exercise home
Review your result

Give the agent four results. Ask: should we ship?

Copy prompt + four resultsPaste into a desktop agent with browser access.▶ PlayRun it in your AI coding agent.
INPUT / TESTBUCKS RC-7 · SYNTHETIC
Menu + cartPASS
Standard checkoutPASS
Payment retry
Two charges after a timeout
FAIL
Mobile checkoutNOT TESTED
ASK THE AGENT

Build a one-page
release report.

  1. Should we ship or hold?
  2. Which evidence supports that?
  3. What should we test next?
Reveal the expected takeaway

HOLD. Fix and retest the duplicate charge. Mobile checkout is still untested—not a pass.

Build and open a simple one-page HTML release-confidence report for TestBucks using the supplied evidence. Recommend SHIP or HOLD and explain why. Show passing checks, failures, and untested work separately. State the next test needed to change the decision. Do not invent evidence, run additional tests, or turn the pass rate into a confidence percentage. Use readable green, amber, and red status labels. EVIDENCE Synthetic TestBucks release RC-7. Menu/cart: PASS, correct items and totals. Standard checkout: PASS, one order and one mock charge. Payment retry: FAIL, two mock charges after a timeout and retry. Mobile checkout: NOT TESTED. Release rule: no known duplicate-charge defects. Only these summary observations are supplied.

Release rule: no known duplicate-charge defects. A pass rate is not release confidence.

Open this section in the presentation →

200 / 247

Carbon Report: Release summary

The decision comes first. The evidence follows.

TESTBUCKS / CHECKOUT / RC-7HOLD

Payment retries can charge a customer twice.

T03 → R1 · Critical release blocker
EXECUTED TESTS
4 / 5 passed

80% pass rate.
Not 80% confidence in release.

Only summary observations supplied.

One critical failure outweighs four green checks.

TestBucks RC-7 · Illustrative report based on the exerciseTeaching example · Not a live CARBON run
Open this section in the presentation →

201 / 247

Carbon Report: Evidence & next actions

What we know. What we don’t. What to do next.

CONFIRMED / T03

Duplicate charge

Response timeout + retry produced two simulated charges.

Fix idempotency.
Verify one order, one charge.
LIMITED / T04 · T05

Narrow coverage

Two accounts tested.
Desktop keyboard happy path only.

Expand authorization tests.
Check mobile accessibility.
MISSING / G3 · G5

No evidence yet

Peak load, recovery, rollback, and alert verification.

Run these checks.
Save traces and results.

Planned work is not evidence. Unknown is not pass.

TestBucks RC-7 · Illustrative report based on the exerciseTeaching example · Not a live CARBON run
Open this section in the presentation →

202 / 247

Carbon Report: Confidence & justification

Show the score—and the reasons someone can challenge.

ILLUSTRATIVE CONFIDENCE INDEX
28 / 100
HOLD · Release gate failed

Example judgment—not a formula,
pass rate, or probability of safety.

EXAMPLE ASSESSMENT / EVIDENCE-BASED RATIONALE

Why low? T03 confirms a payment-integrity defect. G1 has no fix verification.

Why not zero? T01 and T02 support basic cart and checkout behavior.

What limits confidence? T04/T05 are narrow; G3/G5 are untested. Raw traces are missing.

What changes the decision? Verify the retry fix, close high-risk gaps, then reassess against release criteria.

The explanation matters more than the number.

TestBucks RC-7 · Illustrative report based on the exerciseTeaching example · Not a live CARBON run
Open this section in the presentation →

203 / 247

What goes into release confidence?

Risk + context + goals + baseline quality + test evidence.

Risk analysis

Severity, exposure, and what changed

Rating 60 × weight 25%

Business context

Customers, cost, and release scope

Rating 90 × weight 15%

Release goals

Acceptance criteria met

Rating 85 × weight 15%

Existing release quality

Baseline incidents and regressions

Rating 80 × weight 15%

Successful tests

Relevant, representative evidence

Rating 90 × weight 20%

Failures + missing evidence

Unresolved defects and unknowns

Rating 40 × weight 10%
→Apply the
agreed rubric
Normalize inputs.
Weight by importance.
→
CONFIDENCE INDEX75/100

75.25 before rounding

Release gates still apply.

15 + 13.5 + 12.75 + 12 + 18 + 4 = 75.25

Illustrative ratings, not the prior RC-7 results. Higher = stronger support for release; not a probability.

TestBucks · Worked scoring example0–100 rubric · Evidence behind every rating
Open this section in the presentation →

204 / 247

Define quality before you score it.

TestBucks: four outcomes that matter—not four piles of tests.

$540%IMPORTANCE

Checkout

One order. One charge.

25%IMPORTANCE

Order correctness

Exactly what they ordered.

120%IMPORTANCE

Reliability

Retry without duplicates.

15%IMPORTANCE

Usability

Customers can finish.

0 Not met50 Partly met100 Criteria metNOT TESTED ≠ 0

Agree what “good” means before seeing the results.
Define measurable anchors. Keep release blockers separate from the average.

TestBucks · Worked scoring example0–100 rubric · Evidence behind every rating
Open this section in the presentation →

205 / 247

One app. Weighted component scores.

Change a score or weight. The other weights rebalance to total 100%.

COMPONENTSCORE / 100WEIGHTPOINTS
Checkout quality score: 9090
Checkout importance weight: 4040%36.00
Order correctness quality score: 8585
Order correctness importance weight: 2525%21.25
Reliability quality score: 7070
Reliability importance weight: 2020%14.00
Usability quality score: 8080
Usability importance weight: 1515%12.00
Reset example
APP QUALITY SCORE83/100

83.25 before rounding

QUALITY ≠ RELEASE CONFIDENCE

Σ(score × weight) ÷ 100 TOTAL WEIGHT: 100%

Weights rebalance proportionally, rounded to whole percentages. If the other weights are all zero, the remaining weight is split equally. Release blockers still apply.

TestBucks · Worked scoring example0–100 rubric · Evidence behind every rating
Open this section in the presentation →

206 / 247

Build a score for your app.

Use one important customer journey. Make the scoring rules explicit.

01

Choose the criteria

Which outcomes define success?
What would block release?

02

Set the weights

Allocate 100 points of importance.
Define each 0–100 rating.

03

Score the evidence

Show each contribution and total.
Keep unknowns visible.

Compare with a teammate.

Same evidence. Different weights. Would you make the same release decision?

Choose the next test that could most change the decision—not simply add another pass.

TestBucks · Worked scoring example0–100 rubric · Evidence behind every rating
Open this section in the presentation →

207 / 247

Quality scores compose. At every scale.

Zoom in to a feature. Zoom out to a portfolio. Repeat the same idea.

PORTFOLIO / 82Applications + services60% × 80 + 40% × 85 = 82
60% OF PORTFOLIOTestBucks app · 80
50%Checkout · 90
Payment · 100 50%Recovery · 80 50%
50%Menu · 70↳ Search, options, pricing…
40% OF PORTFOLIOOrder service · 85
50%Accuracy · 90
50%Availability · 80

At every parent: child weights total 100%. Scores stay on a 0–100 scale.

Illustrative ratings. Use this to inform a release at that scope—not override blockers, missing evidence, or shared dependencies.

TestBucks · Worked scoring example0–100 rubric · Evidence behind every rating
Open this section in the presentation →

208 / 247

Your turn. Make quality explicit.

IMPORTANT EXERCISEPause here · Take 15–20 minutes

Use TestBucks—or a feature, product, or service from your own work.

01

Choose your scope

Start small: checkout, search, or one customer journey.

02

Define “good”

Pick dimensions, measurable anchors, and weights totaling 100%.

03

Try the score

Use evidence. Label unknowns. Identify blockers and the next test.

The thinking is the exercise.

You’ll learn about your product—and what you really value as quality.

Leave with a one-page scoring tree, a worked example, and an explanation of your choices. Use synthetic or approved data.

TestBucks · Worked scoring example0–100 rubric · Evidence behind every rating
Open this section in the presentation →

209 / 247

The best-kept secret in testing.

Invite the team to help define the scoreboard—before release day.

1 / DRAFT

Make a proposal

Directional values are fine.
Make assumptions visible.

→
2 / WALK THROUGH

Invite PM + engineers

Review the weights, examples,
blockers, and trade-offs.

→
3 / AGREE

Record the decision

Capture changes, owners,
and explicit agreement.

“Funny how it becomes our quality model.”

Shared criteria. More credible assessments. Shared accountability.

Some won’t prepare—or attend. Silence is not approval: get explicit sign-off from decision owners, and revisit the rubric when context changes.

TestBucks · Worked scoring example0–100 rubric · Evidence behind every rating
Open this section in the presentation →

210 / 247

LECTURE 5.05

Run isolated workers in parallel

IN THIS LECTURE

Keep customer sessions separate and combine their evidence under worker and spend limits.

HOW AI TESTS SOFTWARE THE AI TEST HARNESS

Open this section in the presentation →

211 / 247

Parallelize the workers: More than your machine.

Run parallel customer journeys ↗

One computer. Or hundreds of agents working in parallel.

YOUR COMPUTER
Agent 1
Agent 2
Agent 3
Agent 4
Agent 5
Agent 6
6 agents
→

Private cloud

50 agents

Cloud A

50 agents

Cloud B

50 agents

Same TestBucks intents · Isolated workers · One combined evidence trail

AI coding agentCopy for desktop agent▶ PlayRun these TestBucks intents in parallel on my approved cloud test infrastructure. Use isolated synthetic accounts, stay within my worker and spend limits, and collect results into one report.
PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

212 / 247

PAUSE AND PRACTICE

Run parallel customer journeys

Exercise home
Review your result

Two customers. Two carts. Run them at the same time.

Copy prompt for your AI coding agentPaste into a desktop agent with browser access.▶ Play
SEPARATE BROWSER SESSION

Customer A

Add one medium vanilla latte to the cart.

SEPARATE BROWSER SESSION

Customer B

Add two oat-milk lattes to a separate cart.

Check one thing: each cart contains only its own customer’s drinks.

Use your browser tools to test https://howaitestssoftware.com/testbucks/, a fictional Starbucks-like coffee shop. Run two customer journeys in parallel in separate browser contexts/profiles with isolated localStorage. Customer A: add one medium vanilla latte. Customer B: add two oat-milk lattes. Verify each cart has the correct drinks, options, and quantities, with nothing from the other customer. Show a screenshot and PASS/FAIL/BLOCKED result for each cart. Do not check out, use real customer data, or provision paid resources. If parallel isolated sessions are unavailable, report that limit rather than pretending. Return any supported bugs as an OpenTest.ai bug array: https://opentest.ai/#bug-format.

Copy → paste into your AI coding agent → compare the two cart screenshots. No checkout needed.

Open this section in the presentation →

213 / 247

Fan out the work. Fan in the evidence.

Distribute tasks. Reconcile the findings. Rerun only what conflicts.

FAN OUTFAN INONE GOALTest TestBuckscheckoutPayment agent“One charge”Recovery agent“Two charges after retry”Mobile agentLayout + interaction evidenceCONSISTENCY CHECKSame conditions?Same conclusion?Compare claims + tracesONE REPORTEvidence + verdictFlag unresolved conflictsCONFLICT → MATCH CONDITIONS → RERUN AFFECTED WORKERS

Fan-in is reconciliation—not just concatenation.

Different scenarios can legitimately disagree. Check scope first; rerun within limits.
If evidence still conflicts, report uncertainty or escalate—don’t retry until everything turns green.

PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

214 / 247

LECTURE 5.06

Choose and steer the next test

IN THIS LECTURE

Choose CARBON commands for the task and follow a code change through targeted retesting.

HOW AI TESTS SOFTWARE THE AI TEST HARNESS

Open this section in the presentation →

215 / 247

Ask for the workflow you need.

CARBON
CARBONSelect an available workflow; check the official site for current names and access.
testers.ai/carbon/
Focused checkShort · one question
PauseNext workflow →
01Inspect
02Test
03Report
STEP 1 OF 3 / Inspect

Different goals. Different workflows. Evidence carried forward.

PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

216 / 247

Choose a Testing Focus Workflow

CARBON
CARBONSelect an available workflow; check the official site for current names and access.
testers.ai/carbon/
Security
Privacy and PII
Accessibility and WCAG
Usability
User experience
Interface and layout
Performance
Content
Localization
Data integrity
API behavior
Networking
Reliability
Compatibility
Functionality
AI evaluations
Chatbot test suites
Independent review
LONG-RUNNING WORKFLOW · 1 / 7

Accessibility / Explore

Control the browser. Test the journey.
Menu → customize → cart → checkout

Visit many pages and states. Change font size, zoom to 200%, check reflow at 400%, and exercise keyboard focus.

Browser access required · Illustrative workflow

←Pause tour→
PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

217 / 247

Test the change and its neighbors.

Inspect each change. Run the highest-value tests immediately—not everything.

AI coding agent
AI coding agentCopy for desktop agent▶ PlayAdd a sign-in button to the TestBucks homepage.

Developer: Add sign-in to the header.

AI coding agent: Added the button. The page layout has changed.

Harness: Reviewing the diff. Selected: sign-in flow + header layout regression.

Harness: Click → sign in with a test account → verify session. Sign-in works.

Harness: Related regression found: the new button wraps the navigation. Fix the header layout.

AI coding agent: Adjusted the header spacing. Harness retest: sign-in and layout pass.

TESTBUCKS · LOCAL PREVIEW
+ Sign-in added
Layout regression: navigation wraps
YOUR DAILY QUALITY BREW

Your coffee.
Your way.

TestBucks coffee cupExplore the menu
Sign in
jason@example.test
••••••••••
Sign in ↖
✓ Signed in as Jason · Session verified
✓ Header fixed · Related tests passed

Change → select → execute → catch related regressions → fix → retest.

PART 5 · THE AI TEST HARNESSWorkflow · Specialists · Knowledge · State · Learning
Open this section in the presentation →

218 / 247

PART 5 / RECAP

What you’ve learned: The AI test harness.

01

Coordinate specialists

Let Jay organize focused testing sub-agents.

02

Supply team knowledge

Bring product rules, workflows, and private context into scope.

03

Scale execution

Use isolated workers locally or in the cloud.

04

Follow each change

Select high-value tests from the diff and related regression risks.

05

Build release evidence

Combine results, risks, and gaps—not just pass percentages.

06

Make a reasoned decision

Explain confidence, uncertainty, and what to test next.

One coordinated team. Continuous testing. Evidence for the release decision.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

219 / 247

PART 6
THE FUTURE ARRIVES
FASTER THAN WE CAN TEST IT.

Testing what comes next.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

220 / 247

LECTURE 6.01

Test changing experiences

IN THIS LECTURE

Follow the user’s intent across personalized interfaces, agents, and simulated journeys.

HOW AI TESTS SOFTWARE THE FUTURE OF TESTING

Open this section in the presentation →

221 / 247

Dynamic software.

Software will soon be personalized, optimized, and generated by AI on the fly.
Not one lowest-common-denominator template for everyone.

BEFORE / ONE EXPERIENCE FOR EVERYONE
howaitestssoftware.com/testbucks/

Something for everyone.

Browse. Choose. Customize.

TestBucks coffee cupLatteExplore →
TestBucks coffee cupCold brewExplore →
TestBucks coffee cupEspressoExplore →
Find your coffee
→
AFTER / AN EXPERIENCE FOR JASON
howaitestssoftware.com/testbucks/ / for-jason
GOOD MORNING, JASON

Your vanilla latte.
Just how you like it.

MediumVanillaHot

Less browsing.
More of what you came for.

Order my usual →
TestBucks cup personalized with Jason’s nameJason
AI-generated layout · Your preferences · Your context
The test must follow the intent—not assume the interface stays fixed.Illustrative personalized experience · Medium latte shown
Open this section in the presentation →

222 / 247

The interface may disappear.

Voice. Ambient assistants. Proactive actions. Agents talking to APIs.
Testing follows the outcome—not necessarily a screen.

ONE INTENT“Order my usual vanilla latte.”
VOICE

Speak. Listen. Verify.

Multimodal AI can generate voice input and understand voice output.

“Your medium latte is ordered.”
APIs + AGENTS

Generate both sides.

AI can generate APIs and client agents that exercise other agents.

Client agent → ordering agent → API
AMBIENT + PROACTIVE

Trigger. Observe. Verify.

Simulate user context and events. Check what the assistant does on the user’s behalf.

Morning routine → authorized order
✓ VERIFY THE OUTCOMERight drink · Right person · Right price · One authorized order
Different interfaces. The same intent.Chapter 32 · The future of testing
Open this section in the presentation →

223 / 247

Vary the experience. Preserve the promises.

Every interface can be different—every time, for every person.

FIXED SCRIPTS

Hard-coded for yesterday.

Selectors, layouts, and expected flows assume a specific implementation.

click('#usual-latte')
Element not found.

Personalized, generated interfaces break those assumptions.

→
AI + INTENT + USER CONTEXT

Verify the promise.
Adapt the steps.

JASON’S CONTEXTVanilla latte · Medium · Hot
AI coding agentCopy for desktop agent▶ PlayTest this personalized experience for Jason. Use his supplied preferences to verify that his usual drink is correct and easy to order. Adapt to the current interface and verify the outcome.

The AI needs the user’s context to judge whether the personalization is relevant—not just whether the page works.

Intent stays stable. The interface changes. Context defines relevance.Combine adaptive AI with deterministic checks and human review.
Open this section in the presentation →

224 / 247

From personas to a simulated world.

A possible future: many simulated users, journeys, and settings.
Scale is a hypothesis to test, not a demonstrated capability.

CUSTOMERS + PEOPLE WHO AREN’T CUSTOMERS YET
“Does it work for me?”“Here’s what I’d change.”“You should try this.”

Different needs. Different flows. Different settings.
Every person—not just the average persona.

INDIVIDUALS → CROWDS → CONNECTIONS

Test the product.
Simulate the people around it.

  • Test each person’s personalized experience.
  • Simulate crowds interacting with one another.
  • Explore simulated reactions, then validate hypotheses with real users.
More scenarios.More evidence?

Only if the simulation is validated.

Simulated feedback is not customer research.Speculative future scenario · No measured scale claim
Open this section in the presentation →

225 / 247

LECTURE 6.02

AI as a proof engineer

IN THIS LECTURE

Follow CARBON /proof from consequential code and precise properties to Lean models, independent checking, and meaningful next steps.

HOW AI TESTS SOFTWARE THE FUTURE OF TESTING

Open this section in the presentation →

226 / 247

AI as a proof engineer.

CARBON /proof

Find what matters. Formalize it. Check it. Explain it.

01 / AI

Read the code

Trace rules, dependencies, and critical paths.

02 / AI + YOU

Choose the property

Rank impact and feasibility. Approve the scope.

03 / TRANSLATION

Build the Lean model

Make the rule and assumptions explicit.

04 / PROOF CHECKER

Check the argument

Lean checks the formal proof.

05 / AI

Interpret the result

Explain the evidence, limits, and next action.

06 / TESTING

Bring it back to the app

Replay violations. Keep regression tests.

AI connects code, formal logic, and product meaning.

CARBON /proof starts with bounded Boolean verification. General AI proof search is the next step.

Open this section in the presentation →

227 / 247

Find the important, provable pieces.

Scan broadly. Spend proof effort where a failure would matter.

BUSINESS IMPACT

What must never go wrong?

  • Access to someone else’s order.
  • A duplicate charge or refund.
  • Lost or corrupted customer data.
PROOF FEASIBILITY

Can we state a precise rule?

  • Clear inputs and outcomes.
  • A small, isolated decision.
  • Explicit dependencies and assumptions.
Start here: refund authorization.

Allow a refund only when the requester is signed in and owns the order.

AI proposes the shortlist. You approve the property. Complex payment retries need a richer model.

Open this section in the presentation →

228 / 247

Meet Lean: code with checked proofs.

Open-source language
+ interactive theorem prover
lean-lang.org ↗Install Lean ↗
WHAT IT DOES

Math + software verification

Express a precise claim. Construct a proof. Lean checks the proof against the formal statement.

THE HARD PART

Formalization takes expertise

Learning the language, building proofs, and interpreting proof states can be demanding. AI can help—not replace checking.

WHERE TO START

Small, critical rules

Start with a focused function or property. Lean also supports large projects—it is not limited to small code.

Prove the precise rule—not “the whole app is correct.”

Open this section in the presentation →

229 / 247

Turn the rule into Lean.

AI helps translate intent into a formal statement the checker can evaluate.

APPLICATION LOGIC · PYTHON
def allow_refund(signed_in, owns_order):
    return signed_in and owns_order

Intended rule

Every allowed refund requires both authentication and ownership.

FORMAL MODEL · LEAN
def allowRefund (a o : Bool) : Bool :=
  a && o
PROPERTY TO PROVE
∀ a o : Bool,
  allowRefund a o = true →
  a = true ∧ o = true
a = signed ino = owns the order∀ = for every input

Review the translation before trusting the proof.

A correct Lean model does not establish that every caller or payment service behaves like the model.

Open this section in the presentation →

230 / 247

Watch the proof unfold.

TESTBUCKS · REFUND AUTHORIZATIONReplay proof ↻
LEAN MODEL + THEOREM
def allowRefund (a o : Bool) : Bool :=
  a && o

theorem refund_safe (a o : Bool) :
    allowRefund a o = true →
    a = true ∧ o = true := by
  cases a <;> cases o <;> decide

Two Boolean inputs. Four cases.
The proof covers every input in this model.

PROOF WALKTHROUGH

Load the theorem

false / falsePending
false / truePending
true / falsePending
true / truePending

Goal: every allowed refund requires sign-in and ownership.

Illustrated execution—not a live Lean session. A proof of this model is not a proof of the deployed payment system.

Open this section in the presentation →

231 / 247

The result still needs interpretation.

Proof output can be technical. AI connects it to the rule, the code, and the customer.

PROVED

What exactly was established?

Read the theorem, assumptions, and checked domain.

COUNTEREXAMPLE

How does the rule fail?

Translate the input into a reproducible regression test.

UNPROVED

What stopped the proof?

Separate missing lemmas, unsupported logic, and timeouts from defects.

STALE

Does the evidence still apply?

Check changed code and dependencies; verify again.

“Unsolved goals” does not mean “the app is broken.”

AI explains the remaining obligation and proposes the next useful step.

AI explains the evidence. The checker determines the proof verdict. Never weaken the property to get a pass.

Open this section in the presentation →

232 / 247

LECTURE 6.03

AI learns to test games

IN THIS LECTURE

Connect phone and browser controls, learn gameplay and settings, vary personas and goals, and interpret subjective results.

HOW AI TESTS SOFTWARE THE FUTURE OF TESTING

Open this section in the presentation →

233 / 247

One agent. More than one device.

Send input through the phone. Observe the cloud game in the browser.

ILLUSTRATIVE REPLAYPause animationReplay
PHONE CONTROLLER
←→
Drop cup

Tap a control

AIinput →← observation
COFFEE DROPDrops: 0Observe the result after every input
BROWSER · CLOUD GAMEReset demo

Try left, right, then drop. Verify that the game responds.

Device adapters connect the surfaces. Fresh observations catch rotation, pairing, and stale coordinates.

PART 6 · AI TESTS GAMESIllustrative game model · No live game connection
Open this section in the presentation →

234 / 247

Pixels when needed. Structure when available.

AI chooses a useful way to observe each surface.

SCREENSHOTS / VIDEO FRAMES

Read the visible game.

Board, score, focus, animation, and on-screen feedback.

DOM / ACCESSIBILITY TREE
Page↳ Start game button↳ Help link↳ Stream video

Use semantic controls.

Find launch buttons and labels without guessing screen coordinates.

A streamed game can be one video element. Its board is not a DOM grid.

Extract useful state from pixels, check uncertain readings, and retain visual evidence.

PART 6 · AI TESTS GAMESIllustrative game model · No live game connection
Open this section in the presentation →

235 / 247

Learn the whole game—not just how to win.

Watch the agent learn the setup flow—before it ever plays.

  1. 01Intro → Play
  2. 02Choose players
  3. 03Open settings
  4. 04Choose difficulty
  5. 05Review + start
  6. 06Observe game
COFFEE DROP / SETUP WALKTHROUGHIllustrative replay

COFFEE DROP

Your next great coffee break.

☕
Play
Pause walkthroughNext screen →Replay

The agent finds Play on the intro screen.

Learn the routes, defaults, and selected values. Then explore back paths, invalid settings, and recovery—not only Start.

PART 6 · AI TESTS GAMESIllustrative game model · No live game connection
Open this section in the presentation →

236 / 247

Same game. Different players. Different goals.

A persona changes how we play. A goal changes what we verify.

First timerDiscover controls using on-screen help.High scorerChase bonuses and combinations.SpeedrunnerTake the shortest valid route.Rule challengerProbe boundaries and repeated rewards.
GameplayMenu discoverySettings persistencePause / resume
SELECT A PERSONA + GOAL

Use only on-screen instructions and discoveries from this attempt. Verify that actions produce the expected visible game state and score.

PART 6 · AI TESTS GAMESIllustrative game model · No live game connection
Open this section in the presentation →

237 / 247

“Does it work?” is only the beginning.
“Is it fun?”

Qualitative feedback goes beyond functional correctness.

OBSERVATION

Three early failures.

The player retries, but the game gives no explanation of the missed action.

→
AI INTERPRETATION

Confusing, not challenging?

A first timer may feel stuck. An expert may already know the rule.

→
NEXT CHECK

Make feedback clearer.

Compare retries, progress, and player feedback with real first-time players.

QUALITATIVE FEEDBACKDoes it look good?Is it fun?Is it appropriate?

Use a rubric. Cite moments from play. Separate observations from judgments.

This is an illustrative critique. AI’s simulated reaction is a hypothesis to validate with players.

PART 6 · AI TESTS GAMESIllustrative game model · No live game connection
Open this section in the presentation →

238 / 247

CARBONCarbon Games

Learn the game. Plan the tests. Play with purpose.

Menu setup · captured screenshots

Netflix Tetris Time Warp · Watch the score rise and 2 rows clear.
Menu screenshots + a separate gameplay run at 2× speed.

1
PAIR

Control via phone + desktop browser

Pair phone controls with the cloud game in the browser.

2
EXPLORE

Walk the menus

Learn navigation, options, and setup. Track unvisited paths.

3
LEARN

Play to learn

Discover rules, controls, goals, and outcomes.

4
PLAN

Generate scenarios + a test plan

Vary personas: newcomer, expert, explorer, rule breaker.

5
EXECUTE

Run the tests

Exercise scenarios and capture actions and results.

6
ASSESS

Add qualitative feedback

Does it look good? Is it fun? Is it appropriate?

PART 6 · AI TESTS GAMESWorkflow overview · Clip shows an excerpt · Qualitative judgments need player validation
Open this section in the presentation →

239 / 247

LECTURE 6.04

Software that tests and repairs itself

IN THIS LECTURE

Explore local self-testing and explain why verification can require more work than generation.

HOW AI TESTS SOFTWARE THE FUTURE OF TESTING

Open this section in the presentation →

240 / 247

Software will test itself.
And fix itself.

FUTURE VISION / EMBEDDED TESTING

Add testing intelligence to the app.

A Test SDK observes app state, runs scoped checks, and records evidence on the actual device.

Beta buildsExplore, diagnose, and verify fixes.Production, tooApproved checks with privacy, performance, and side-effect limits.
Find → Fix → Verify

Repairs need explicit authorization, independent verification, and rollback.

ADD TO YOUR APPTest SDKObserve · Check · Report
↓
TESTBUCKS / RUNNING APP
Vanilla latte

Your usual.

Vanilla latte · Medium

Order my usual
Test SDKInside the app · Under the hood
StateChecksEvidence
One less boundary between coding and testing.Future vision · Authorized local repairs, verification, and rollback
Open this section in the presentation →

241 / 247

Where will all that compute go?

80%+
Validation & testing.My prediction for software-production compute.
const app = …return result;if (ready) { }save(order);
Code generationValidation & testing

One code change. Many tests, simulations, reviews, and retries.

Conceptual allocation—not a measured compute share.
One change. Many ways to test it.Jason Arbon’s prediction · Adapted from STARWEST
Open this section in the presentation →

242 / 247

PART 6 / RECAP

What you’ve learned: The future of testing.

01

Expect dynamic products

Personalized software changes the interface and the testing problem.

02

Test beyond screens

Voice, APIs, and agent interactions still need outcome verification.

03

Bring user context

Check whether personalization serves the actual person and situation.

04

Extend verification

Use AI to formalize important rules and interpret checked proof evidence.

05

Understand self-testing

Consider apps that test and repair themselves on the device.

06

Keep safety in view

Greater autonomy and compute make oversight and boundaries more important.

The interface can change—or disappear. The need for trustworthy outcomes remains.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

243 / 247

COURSE COMPLETE

What you’ve learned: testing software with AI.

01

Find meaningful bugs

Inspect evidence with focused AI checks.

02

Execute real journeys

Let agents act, then verify the customer outcome.

03

Think with context

Use code, risks, personas, and skeptical judgment.

04

Reuse test intent

Preserve the goal across changing apps and devices.

05

Coordinate a test team

Combine specialists, automation, and release evidence.

06

Prepare for what’s next

Test dynamic, personalized, and increasingly autonomous software.

Start with one useful question. Give AI the tools and context. Demand evidence.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

244 / 247

Your course. Your certificate.

Sample personalized course completion certificate
THE NEXT STEP IS YOURS

You did the work.
Make it official.

A personalized completion certificate, ready to share.

Send your name + the course you completed.

Personalized PDFPNG image
Open this section in the presentation →

245 / 247

KEEP EXPLORING

Want to go deeper?
There’s the book.

How AI Tests Software

Jason Arbon

Get the book on Amazon ↗

Explore the book and more resources.

HowAITestsSoftware.com ↗
How AI Tests Software by Jason Arbon
Read it. Try it. Make it part of your work.How AI Tests Software · Jason Arbon
Open this section in the presentation →

246 / 247

CARBONCARBON FROM TESTERS.AI

Put these workflows to work.

Inside your AI coding agent, say “Carbon”—then what you want tested.

AI coding agent

>_ Carbon, test this change and show me the evidence.

/carbonStart a risk-based assessment
/carbon-testTest a focused flow
/carbon-generateGenerate useful test candidates
/carbon-personasExplore different user needs
/carbon-evalEvaluate AI behavior
/proofVerify a focused property

Best-practice workflows. Focused checks. Evidence you can review.

Open this section in the presentation →

247 / 247

IcebergQA

More AI code.
More QA bandwidth.

When code arrives faster than your team can test it,
add AI-assisted testing backed by experienced QA people.

01

Turn it on.

Start quickly with your app, change, or testing backlog.

02

Scale it up.

Add testing capacity when releases and code volume surge.

03

Dial it down.

Reduce or pause the work when demand eases.

AI testing at scale + human QA expertise

Risk-focused checks · Clear evidence · Bug reports · Prompts to fix them

Open this section in the presentation →