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

  1. The user calls the API, passing a short site description, the URL, and the page to test.
  2. 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.
  3. 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.
  4. 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.