The post has been translated automatically. Original language: Russian
The test passed, the button was pressed, and the "Application accepted" screen appeared, but there was no application in the database. Autotest (a program that checks the system without a human) looked only at the screen and honestly showed "everything is fine". A tester would have found it, but he needs four windows for one scenario: an interface, a database, logs, and a task tracker.
It's the same story with AI. He quickly writes tests on the code, but does not see how the system actually behaves. Below is how we arrange the work of an AI agent with a test stand (a copy of the system for checks, without real clients) and what we lay down.
Connecting services via a single protocol
MCP (Model Context Protocol) is an open protocol through which the AI assistant connects to external tools. Each service connects via its own MCP server and gives the agent a set of actions: open a page and click a button, call the API (the software interface through which services exchange data), make a request to the database, read logs, and create a task. One protocol, instead of a separate integration for each tool. Ready-made MCP servers are available for the browser, popular databases, and task trackers.
The scheme is as follows:
AI agent → MCP → booth services: → browser - runs the script in the interface → API — checks the responses of the services → database — checks what was recorded → logs — finds an error behind the scenes → tracker — creates a bug with steps and screenshot → repository — looks at what has changed in the latest release
Going through the entire script
An example to illustrate, not a project report. The client applies for a loan. The agent fills out the form in the browser and clicks "Submit". Then he looks in the database to see if the entry has appeared and if the amount and time are correct in it. Requests the application status via the API. If the screen shows "accepted", but the database is empty or the status is different, the agent goes to the logs, finds an error at the time of sending and starts the task in the tracker: playback steps, screenshot, line from the log.
The person does not receive "something is not working," but a ready-made description, which remains to be checked and passed on to the developer.
We assign four types of work
- Exploratory testing of the new screen: empty fields, lines that are too long, a back button in the middle of the script, and a list of things that behaved strangely.
- Post-release verification: the agent looks in the repository to see what has changed, and runs scenarios around these locations.
- Analysis of the dropped test: repeats the steps on the stand, checks the logs and answers whether the system is broken or the test itself is outdated.
- A draft of the autotest based on the found scenario.
We give you only reading and only a test bench
We set the boundaries before the first launch, not after the first incident.
- Just a test bench. The agent does not connect to the working system with real clients at all.
- The database is read—only, under a separate account. It is not enough to write "do not change anything" in the instructions.: the access rights themselves should not allow you to change.
- Without personal data: there are anonymized test clients on the stand.
- The agent does not close bugs or change the code itself. He finds and describes, the person decides.
Turning a find into an autotest
An agent will go through the script one way today, another way tomorrow. This is a plus for finding new bugs, and a minus for regular checking. Therefore, we turn the found script into a regular autotest: the agent writes a draft, the developer proofreads it, and then the test runs with each build without AI. This way the check remains reproducible: the same steps, the same expected result.
We start with two services and one script.
You don't need to connect everything at once. We take the browser and the database, one understandable scenario — the same application submission — and ask the tester to pass it by hand at the same time as the agent. Compare: what the person found, what the agent found, and how long it took to analyze his report. If the report can be trusted, add the logs and tracker. If not, it's better to find out in one scenario than on the entire stand.
AI is useful in testing not when it writes more tests, but when it sees the entire system: the screen, database, and logs at once. At the same time, decisions and repeatable checks remain for people and ordinary autotests.
Have you tried AI in testing? What was assigned to him, and what was then taken back?
Тест прошёл, кнопка нажалась, на экране «Заявка принята» — а в базе заявки нет. Автотест (программа, которая проверяет систему без человека) смотрел только на экран и честно показал «всё хорошо». Тестировщик это нашёл бы, но ему на один сценарий нужны четыре окна: интерфейс, база, логи и трекер задач.
С ИИ та же история. Он быстро пишет тесты по коду, но не видит, как система ведёт себя на самом деле. Ниже — как мы устраиваем работу ИИ-агента с тестовым стендом (копией системы для проверок, без настоящих клиентов) и что при этом закладываем.
Подключаем сервисы через один протокол
MCP (Model Context Protocol) — открытый протокол, через который ИИ-ассистент подключается к внешним инструментам. Каждый сервис подключается через свой MCP-сервер и даёт агенту набор действий: открыть страницу и нажать кнопку, вызвать API (программный интерфейс, через который сервисы обмениваются данными), выполнить запрос к базе, прочитать логи, завести задачу. Один протокол — вместо отдельной интеграции под каждый инструмент. Готовые MCP-серверы есть для браузера, популярных баз данных и трекеров задач.
Схема такая:
ИИ-агент → MCP → сервисы стенда: → браузер — проходит сценарий в интерфейсе → API — проверяет ответы сервисов → база — сверяет, что записалось → логи — находит ошибку за кадром → трекер — заводит баг с шагами и скриншотом → репозиторий — смотрит, что поменялось в последнем релизе
Проходим сценарий целиком
Пример для иллюстрации, не отчёт о проекте. Клиент подаёт заявку на кредит. Агент заполняет форму в браузере и нажимает «Отправить». Потом смотрит в базе, появилась ли запись и те ли в ней сумма и срок. Запрашивает статус заявки через API. Если на экране «принята», а в базе пусто или статус другой, агент идёт в логи, находит ошибку по времени отправки и заводит задачу в трекере: шаги воспроизведения, скриншот, строка из лога.
Человек получает не «что-то не работает», а готовое описание, которое остаётся проверить и передать разработчику.
Поручаем четыре вида работы
- Исследовательское тестирование нового экрана: пустые поля, слишком длинные строки, кнопка «назад» посреди сценария — и список того, что повело себя странно.
- Проверку после релиза: агент смотрит в репозитории, что изменилось, и проходит сценарии вокруг этих мест.
- Разбор упавшего теста: повторяет шаги на стенде, сверяет с логами и отвечает, сломалась система или устарел сам тест.
- Черновик автотеста по найденному сценарию.
Даём только чтение и только тестовый стенд
Границы закладываем до первого запуска, а не после первого происшествия.
- Только тестовый стенд. К рабочей системе с настоящими клиентами агент не подключается совсем.
- База — только на чтение, под отдельной учётной записью. Написать «ничего не меняй» в инструкции мало: менять не должны позволять сами права доступа.
- Без персональных данных: на стенде обезличенные тестовые клиенты.
- Агент не закрывает баги и не меняет код сам. Он находит и описывает, решает человек.
Превращаем находку в автотест
Сегодня агент пройдёт сценарий одним путём, завтра — другим. Для поиска новых ошибок это плюс, для регулярной проверки — минус. Поэтому найденный сценарий превращаем в обычный автотест: агент пишет черновик, разработчик его вычитывает, и дальше тест гоняется при каждой сборке уже без ИИ. Так проверка остаётся воспроизводимой: одни и те же шаги, один и тот же ожидаемый результат.
Начинаем с двух сервисов и одного сценария
Подключать всё сразу не нужно. Берём браузер и базу, один понятный сценарий — ту же подачу заявки — и просим тестировщика пройти его руками одновременно с агентом. Сравниваем: что нашёл человек, что нашёл агент, сколько времени ушло на разбор его отчёта. Если отчёту можно верить, добавляем логи и трекер. Если нет — лучше узнать это на одном сценарии, чем на всём стенде.
ИИ в тестировании полезен не тогда, когда пишет больше тестов, а когда видит систему целиком: экран, базу и логи сразу. Решения и повторяемые проверки при этом остаются за людьми и обычными автотестами.
А вы пробовали ИИ в тестировании? Что ему поручали — и что потом забрали обратно?
Comments 0
Newest Popular