Read if QA Automation Is a Must for Impeccable App Quality
As for what AI does well, it is basic, functional, and unit testing — simple checks with predictable outcomes. That’s its so-called comfort zone. All you need to do is feed it an HTML snippet and a short test description, like: “Open the login page, enter credentials, verify that the dashboard loads.” Within a minute, you’ve got a usable test script, perhaps still not a perfect one, but good enough to run after a quick review.
We tried this approach when we were working on our Velvetel product, our contact center solution. Previously, simple UI checks, like call validation or playback testing, were written manually. Later, we shifted these responsibilities to AI: grabbed the HTML fragment of a page, pasted it into a prompt, described the scenario, and the expected result. The AI found the locators, wrote the test, and the output was almost production-ready.
It sounds simple, and it is to a certain point. Starting a project from scratch still requires effort, but even there, AI can assist you: walking you through setup steps, configuration, imports, and dependencies. From our own experience, building a working project and test suite manually would have taken around three months. With AI, it took about sixteen hours — and the result wasn’t a toy example, but a real, extendable project.
Discover Top AI Copilot Use Cases
Garbage in — Garbage Out. Things to Remember When Striving to Ensure Impeccable Test Quality

When it comes to the quality of AI-powered test generation, everything boils down to one simple principle: garbage in — garbage out. Whatever you feed in is exactly what you’ll get back. No matter how smart and powerful the model seems to be, if your prompt is vague, poorly structured, or lacks context, the output will reflect that.
The first step to avoiding this trap is setting clear boundaries and context. Define precisely what’s being tested, in which environment, using what tech stack, and with which assumptions and criteria. It also helps to assign the model a role, for example: “Act as a senior QA engineer specializing in automated tests in TypeScript using Playwright.” This frames the AI’s thinking, nudging it toward established approaches and best practices used by real seasoned QA professionals.
But even with the perfect prompt, mistakes might happen. AI can mix up locators, skip page load waits, or invent fields that don’t exist. Reviewing non-human-written tests remains an essential part of the process, and experience of interaction with AI matters here: the more you work with such tests, the better you get at spotting the weak points, whether in logic, data, or timing.
Sometimes the model simply “fills in the blanks” on its own, and only god knows for what reason. For instance, when we were trying to rewrite one script from PostgreSQL to MySQL, the model renamed the full name column to name for no reason, breaking the whole script. Seemingly minor thing, but big consequence, and sometimes it’s easier and faster to identify the error and fix it manually than to spend dozens of prompts trying to explain to the model which kind of mistake it had made.
That’s why achieving real quality isn’t about trusting AI blindly, but about collaborating with it. You give it a precise, well-structured input — it produces a working draft. Then you review, refine, and bring in your own engineering judgment. Therefore, the responsibility for quality still lies with you.
Risks and Complexities of AI-Driven Tests

When it comes to using AI in software testing, the first thing to keep in mind is attentiveness: what you feed it and to whom you’re feeding it. Many AI systems can reuse the data you provide for training, and in the worst case, that information might resurface in unexpected contexts. It’s not only about data leakages; sometimes it’s about the model unpredictably reusing parts of your prompts in other responses.
The second category of risks involves the quality and reliability of the output. If you skip reviewing what the AI produces, you can easily end up with a test that looks valid but actually checks the wrong thing, or even worse, passes critical bugs into production. The rule here is simple: AI generates — human reviews. This is an axiom.
Take a look at Generative AI Risks and Regulatory Issues
If reviewing takes less time than writing the test from scratch, that’s great and means that the tool is doing its job great. If it takes longer, something’s off: either in the prompt or in task formulation.
It’s also important to understand that the risk level depends on what exactly you’re generating. When AI writes automated tests, the consequences of its mistakes are usually contained: the test either passes or fails without touching the core business logic.
But when AI generates production code, that’s a whole different story. You can run into conflicting validations, logical contradictions, or architectural flaws — the same types of issues a human developer might introduce. The difference is that AI’s mistakes can be subtler because “it looks fine.”