HOW AI TESTS SOFTWARE / JASON ARBON

Part 6: Changing experiences and future testing

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 29 sections and course media are included in this file. Interactive exercises and external links need an internet connection.

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 →