1 of 16

Beyond Static Test Scripts

An agentic approach to adaptive yet reliable Android testing

Rana Roy · Sasken Technologies

Demo walkthrough

2 of 16

THE PROBLEM

When the application evolves faster than the tests

Beyond Static Test Scripts

2

APPLICATION

Sprint 1

Sprint 2

Sprint 3

Sprint 4

TEST AUTOMATION

selector

selector

selector

wait

coordinate

navigation

assertion

…

UI changes

Test changes

Test maintenance

Test debt

3 of 16

THE PROBLEM

Beyond Static Test Scripts

3

What if the test suite�became the bottleneck?

Not because the app was broken.�Because the tests could not keep up with it.

4 of 16

THE PROBLEM · ROOT CAUSE

Tests are coupled to how, not what

Beyond Static Test Scripts

4

Selectors

UI hierarchy

Navigation path

Timing

Exact assertions

E2E test script

Every UI change is a test change.

Churn

Stale automation

Trust erosion

5 of 16

PROPOSED SOLUTION

From how to what

Beyond Static Test Scripts

5

how the UI works

what must be true

implementation

intent

6 of 16

PROPOSED SOLUTION · THE ARTIFACT

A test skill is not just a prompt

Beyond Static Test Scripts

6

Test Identity

which test · which feature

Intent & Preconditions

what must be true before you start

Execution Guidance

preferred tools · hard constraints

Adaptive Guidance

read live UI · do not assume

Evidence & Reporting

what actually happened

Stable intent + bounded guidance + evidence contract

7 of 16

PROPOSED SOLUTION · WHY IT HOLDS

One redesign, two outcomes

Beyond Static Test Scripts

7

A redesign lands — the button moves into a bottom sheet

Script

selector gone

path changed

assertion moved

tests go red

Intent skill

same intent

agent re-locates

same outcome

still green

readable by QA and PM

reviewed in git, like code

one intent, many builds

8 of 16

THE RISK

Probabilistic execution is hard to trust

Beyond Static Test Scripts

8

same intent

pass?

pass?

pass?

trust

reproduce

diagnose

scale

9 of 16

THE APPROACH

Reasoning where it is needed.�Determinism where it matters.

Beyond Static Test Scripts

9

Agentic

reasoning

Deterministic

controls

trust

10 of 16

PROPOSED ARCHITECTURE

Agentic reasoning on a deterministic substrate

Beyond Static Test Scripts

10

TEST SKILL

AGENT

Observe · Reason · Plan · Act · Validate · Recover

MCP tools

Android actions

tap · swipe · type · launch

Validation

screenshot · UI inspect · app checks

Android App

Observability

Evidence

Verification

Recovery

Classification

11 of 16

SEE IT RUN

A short recording

Beyond Static Test Scripts

11

▶

LIVE DEMO / RECORDED RUN — TO BE INSERTED

Replace this shape with the recording; the slide needs no other change.

12 of 16

MAKING IT TRUSTWORTHY

Five controls around the agent

Beyond Static Test Scripts

12

01

Deterministic�setup & teardown

preconditions are�established, not assumed

02

Complete�execution traces

video, logcat, tool calls,�screenshots, report

03

Adversarial�verification

the agent does not�grade its own homework

04

Bounded�self-healing

retry cap, no-progress�guard, time budget

05

Failure�classification

product defect vs�everything else

13 of 16

CONTROL 05

When something fails, who is responsible?

Beyond Static Test Scripts

13

FAILURE

PRODUCT

DEFECT

ENV

ISSUE

INFRA

ISSUE

PRECONDITION

ISSUE

AGENT

ISSUE

Only product defect counts against the app. Everything else is lab, setup or agent.

14 of 16

REASON ONCE

Replay many

Beyond Static Test Scripts

14

FIRST RUN

AGENT REASONS

VALIDATED

Deterministic path?

YES

REPLAY

CI runs

DRIFT?

no

yes

PASS

HEAL → AGENT

NO

AGENTIC EVERY RUN

no replay artifact

compile: nav · forms · asserts

stay agentic: semantic / generated

15 of 16

THE LIFECYCLE

One loop

reason → validate → determinize → replay → heal

Beyond Static Test Scripts

15

Reason

Validate

Determinize

Replay

Heal

LLM cost paid once, per drift

16 of 16

Use AI where reasoning is required.�Use determinism where repeatability matters.

Thank you — questions?