Where the idea came from
Every site needs tests: something that runs through all the components and buttons, and a CI/CD pipeline that tells you what broke. But whenever I got around to writing them, I either abandoned them halfway or never started.
So I went looking for tools that would do it for me. There's plenty of AI-powered stuff out there, and plenty of big promises. But I noticed a pattern: they all test the happy path, not what real users actually do. So the tests only show part of the picture.
The problem with existing tools
The tools I found all follow the same principle: the test steps follow a specific functional task, i.e. "verify that this component does its job."
That's not bad on its own. It's fast, and regressions from a new feature can get caught right away. But it doesn't always cut it, because real people vary:
- Some don't understand your interface.
- Some click "wherever" and rarely the thing you expected.
- Some reload the page while a form is submitting.
- Some mash a button several times in a row.
Typical E2E tests and testing services almost never cover this. Real bugs, from technical glitches to UI logic problems, only show up through actual user behavior. A first-time visitor opens a page and has no idea what to do? That's a UI/UX problem, and no scripted test will flag it. How your site handles "illogical" actions is something you only learn by watching them happen.
My approach: a system of artificial users
Instead of searching further, I built my own solution.
The system manages Artificial Users. They don't just execute actions on a site. Each one gets:
- a personality
- a level of understanding of the page and its purpose
- the ability to change its path depending on the page state
I don't hand the AI a site structure and say "click whatever." I define how it should behave, make decisions, and interact with the site. That changes everything: instead of random clicking, an artificial user can act logically or illogically, looking at the page the way a real user would.
The goal is to imitate people with different levels of understanding and surface bugs that no written test covers.
How it works under the hood
I had two options: dump everything on an LLM and build yet another AI agent, or build a system where the AI is just one component of the workflow.
I went with the second one and minimized the AI's role wherever it isn't actually needed.
The system handles:
- page structure analysis
- executing actions
- the lifecycle of artificial users
- coordinating them
The AI handles:
- generating a scenario and its actions based on the assigned personality
You could let the AI do everything: analyze the page, decide when the page state changed, decide whether to reroute, all through tool calls. But the main problem there is token usage. Instead, the system itself triggers page analysis, runs each step, compares page states, and decides whether the scenario needs to change.
So the challenge isn't only what kind of testing to do, but how to make it efficient. That's what the architecture is built around.
Current lifecycle
- The user calls the API, passing a short site description, the URL, and the page to test.
- The system analyzes the page via Playwright and builds a compact, readable element structure. That structure goes into scenario generation, and later the system uses it to locate elements and act on them.
- The system hands the task to the AI. The model receives its profile (personality), plus page and site data, then decides on its own goal and the scenario for reaching it.
- The system executes the scenario step by step. After each step it compares page states and decides whether to change course.
This scenario isn't a typical test script. It doesn't verify a page's function; it just provides a base route for the user, driven by a profile that determines almost everything, from the goal to each individual action. And the scenario isn't set in stone: if the system detects that the page state really changed, the AI can generate a different next step from the same data.
Early results
The functionality is still focused, but the results are already interesting. For example, given a profile of a user who doesn't really get the interface, the AI generates scenarios that:
- click a button multiple times
- submit a form only partially filled in
The system also coordinates the AI's new steps well, so the artificial user's loop is already starting to look a lot like a real session. I'm still collecting runs across different sites, and more results will come as I test on more of them.
Tech stack
Java + Spring Boot + Playwright.
- Java: great for multithreaded workloads like running several artificial users in parallel.
- Spring Boot: gets an API up quickly and makes DI easy.
- Playwright: great docs, pleasant to use, flexible configuration and control, and less manual code to write.
It's open source
The project is on GitHub: DequElite/Auzonix
You can try it, read through the full logic, or contribute changes. Documentation is there, and the code is written to be easy to follow.
I started it recently and I'm building it solo, improving it every day, and I'd love your help:
- Found a bug or a potential problem? Open an issue.
- Got an idea for a feature or improvement? Same place.
Final thoughts
Traditional E2E testing is still good and necessary. But some problems need a different approach, like testing with "living" users.
What do you think? Does this approach make sense, and is it worth developing further?
I'm not calling for abandoning traditional tests. This is just my experience and an experiment, open to everyone to use and improve.
Top comments (4)
The "reload the page while a form is submitting" example is the one that sold me — that's exactly the kind of bug a happy-path script never finds, because the script is too well-behaved to do it. The design choice I'd steal is minimizing the AI's role to scenario generation only and letting the system handle page analysis and state comparison — that's the difference between a demo and something you can actually afford to run in CI. One question: when an artificial user finds a real bug, what does the report look like — a replayable trace, or just the step list? A replayable trace is what would make me run this before every release.
Thanks! Glad the architecture choice resonated — keeping token burn low enough for real CI runs was a top priority from day one.
Right now, the system doesn't generate a full replayable trace yet. Currently, the output gives you the executed scenario (with each step and its purpose), a list of captured browser errors, and the full lifecycle log of the artificial user's session.
That said, replayable traces are actively in development and are one of my main upcoming goals for the project. If you have any ideas or preferences on how that should be implemented or what format would work best for pre-release runs, I'd really appreciate it if you opened an issue or started a discussion on GitHub!
My preference would be two layers in one artifact: a short human-readable summary up top (scenario, what it tried, where it failed, with the exact step number), and below it a machine-readable trace — one JSON object per step with the action, selector, input, expected vs. actual result, and a timestamp. That way a pre-release run fails with a story I can read in ten seconds, and the same file can be replayed deterministically without re-running the AI. One question: would you replay against the live site or a recorded snapshot? The snapshot route is what would make me trust it in CI, since a live site can change between the run and the replay.
Fair point! Right now, the output just gives a list of all browser errors that happened during the test, and honestly I haven't thought that deeply about live vs. snapshot replay yet.
At this stage, my main priority is expanding how the artificial user can interact with websites so it can catch as many bugs as possible first. Once that part is solid, I'll look into snapshot-based replay for CI — thanks for the perspective, it's definitely something to keep in mind!