HOW AI TESTS SOFTWARE / JASON ARBON

Part 2: Interactive AI tests

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.

All 27 course sections are on this page. Download single-file HTML for offline reading.

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 →