AI Agents Test Like Real Users? Experimenting with Midscene.js and Interaction-as-a-Judge for the AI SDLC
As AI coding agents become increasingly capable, can testing and UAT keep up? If AI can generate applications much faster but business users still need to manually repeat the same UAT scenarios, we are simply shifting the bottleneck from coding to testing. Inspired by the recent Interaction-as-a-Judge research, this experiment uses Midscene.js to let AI agents test an application the way real users do.
The setup: a small customer-service portal built with four deliberate functional defects while all seven unit tests kept passing — then three AI evaluation approaches compared. Code-only evaluation scored 7/8, autonomous interaction 6/8, and guided interaction 8/8. The telling defect was a navigation link whose JavaScript was correct but which an invisible UI overlay prevented users from clicking: the interaction-based judge caught what the code-only judge missed.
Beyond the experiment lies AI-driven UAT assurance: record business-approved user journeys and continuously replay them as AI coding agents modify the application, producing evidence of what has been verified so business users can focus their UAT on critical scenarios, new functionality and exceptions. A step toward a more continuous AI-native SDLC where coding, testing, verification and correction evolve together — with open challenges around agent reliability, test coverage and business validation.
Key Takeaways
- Faster AI coding without faster validation just moves the bottleneck to testing and UAT
- Passing unit tests proved nothing about four real functional defects — code can be correct while the user experience is broken
- Guided interaction (8/8) beat both code-only (7/8) and fully autonomous interaction (6/8) evaluation
- Interaction-based judges catch what static/code judges cannot — e.g. an invisible overlay blocking a correct link
- Record business-approved journeys and replay them continuously as agents change the app; let humans focus UAT on what's new, critical or exceptional
Related Posts
- AI Coding Made Us Faster. Then the Real SDLC Problems StartedJul 2026
- AI Pentesting in the AI-SDLC: Can It Improve Security, Reduce Costs, and Speed Up Delivery?Nov 2026
- From AI Coding to AI SDLC: What Four Iterations Taught UsMay 2026
- Geek Out Time: From Ontology to AI Agents -Determinism Matters in High-Compliance IndustriesJan 2026