Agentic Testing: What Works and What's Still Missing
Looking at Lynqa and Bug0, agent-driven test execution, cached actions, and the problem of keeping test scenarios in two places.
In my previous article, Are We Automating the Wrong Part of Testing?, I wondered why we mostly use AI to write automated tests instead of letting it execute test scenarios directly.
After writing it, I became curious whether tools built around this idea already existed. I did a bit of research and came across two projects: Bug0 and Lynqa. Both are interesting in their own ways, and some of their technical decisions made me think more about where agentic testing could go.
I should say up front that I haven't used either tool yet. What I want to look at here is the approaches their developers describe.
Lynqa – executing test scenarios with an agent
Lynqa, a project by Smartesting, turned out to be quite close to the approach I described in my previous article.
In particular, it can execute test scenarios that already exist in the Xray test management system. That means we don't need to create a separate set of automated tests. The agent takes an existing scenario, executes it, and reports the results.
I think this really matters. In my previous article, I pointed out that traditional test automation often leaves us with two sources of truth: the test management system and the automated test code. Here, the agent executes the scenario we already have.
At the same time, such execution may take longer than running a test manually, and considerably longer than running a test script. But it's still automation that doesn't require a person to participate in every run.
So can we reduce the cost and time of executing these scenarios repeatedly?
Bug0 – why should an agent solve the same problem twice?
Another interesting project is Bug0 QA Agent, an open-source library for agentic testing built on Playwright.
Two technical decisions caught my attention: caching the agent's actions and using multiple LLMs to verify results.
Caching
If an agent has already performed an action successfully, why should it have to figure out how to do the same thing all over again?
In Bug0, successfully executed individual actions can be cached and replayed through Playwright in later runs. Replaying such an action doesn't require another LLM call. If a cached action stops working, the system can turn to the agent again.
Essentially, this is a hybrid approach to automation, where part of the test scenario is executed by an agent and part by regular program code.
It's worth remembering, though, that this optimization comes with some loss of flexibility. We can replay actions that our deterministic executor knows how to perform. More complex scenarios may still require full agentic execution.
I'm curious how this approach will evolve. Will cheaper models be used when a cached action can no longer be replayed? Trying a cheaper model first seems logical to me, and if it can't handle the problem, the task could be passed to a more capable model.
Verifying results with multiple models
Another interesting Bug0 feature is the use of multiple LLMs to check expected results.
Claude and Gemini independently evaluate an assertion, and when their verdicts disagree, a third model can act as an arbiter.
I like the idea of separating test execution from verification. Using different models could let us benefit from their respective strengths and reduce the impact of mistakes made by any single model.
I'd also be interested to know whether we could get a similar effect from several independent sessions of the same model, each given different context or a different role.
Of course, agreement between several models doesn't guarantee that the result is correct. Still, I find the idea interesting.
So where should the test scenario live?
There's one thing about the Bug0 QA Agent approach that I'm not particularly fond of.
Although the agent's actions are described in natural language, the tests themselves are defined through a TypeScript API.
Technically, that's different from using something like BDD. But from a test organization perspective, I see a similar problem.

If a company already uses a test management system, it may have to describe and maintain the same scenario in two places. Whether the second description is written in Python, TypeScript, Gherkin, or another format doesn't really matter.
We still have to keep two representations of the same test scenario in sync.
Of course, we could build an integration that retrieves scenarios from an external system. But I'd find it much more interesting to have that capability directly in the execution tool.
Bug0 Studio and the history of record-and-replay automation
Bug0 also has a separate product, Bug0 Studio, which lets users create test scenarios without writing code, including by recording their actions.
This could be very convenient for some teams, especially those willing to adopt, or already using, the Bug0 ecosystem. But recording user actions and replaying them later is hardly a new idea.
Katalon Studio is one example that comes to mind.
In my view, one of the biggest historical challenges with record-and-replay hasn't been creating automated tests. It's been maintaining them.
Imagine recording several dozen test scenarios, each interacting with the same UI element. Even a small change to that element could potentially break many tests.
One advantage of well-designed script-based automation is the ability to reuse functionality. If interaction with that UI element is encapsulated in a shared test framework component, fixing that component in one place can restore all the tests that depend on it.
To be fair, tools such as Katalon Studio also offer ways to reuse functionality. And newer versions already use AI to recover from broken locators.
So I think AI gives record-and-replay tools an opportunity to solve some of the problems that have historically limited their usefulness.
What's next?
Lynqa and Bug0 show two interesting directions for agentic testing.
The former demonstrates direct execution of existing test scenarios. The latter shows how cached replay of individual actions can reduce the cost of agentic execution.
Now I'd like to see these approaches move closer together.
In theory, a scenario initially executed by an agent could gradually turn into a regular test script as more information is collected and the product becomes more stable. Meanwhile, the original description of the test scenario could remain in one place.
Then we wouldn't necessarily have to choose between agentic and script-based testing when creating a scenario. The choice could depend on execution cost, the flexibility we need, and how stable the functionality under test is.
But that's a topic for another article.
Sources: