Beyond Static Test Scripts
An agentic approach to adaptive yet reliable Android testing
Rana Roy · Sasken Technologies
Demo walkthrough
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
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.
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
PROPOSED SOLUTION
From how to what
Beyond Static Test Scripts
5
how the UI works
what must be true
implementation
intent
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
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
THE RISK
Probabilistic execution is hard to trust
Beyond Static Test Scripts
8
same intent
pass?
pass?
pass?
trust
reproduce
diagnose
scale
THE APPROACH
Reasoning where it is needed.�Determinism where it matters.
Beyond Static Test Scripts
9
Agentic
reasoning
Deterministic
controls
trust
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
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.
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
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.
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
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
Use AI where reasoning is required.�Use determinism where repeatability matters.
Thank you — questions?