QA Interview Hub · Knowledge base · Quizzes · Українська
AI-driven Automation
Agentic automation: basics
Assistant, agent, autonomous pipeline: what is the difference
An assistant answers a request in one step, an agent works in a plan, act, observe loop, and an autonomous pipeline is an agent built into a process. A person runs the assistant's output; the agent calls tools and decides the next step itself; the pipeline starts on an event with no person at each step. The more autonomy, the more verification matters.
A colleague says: "We already use AI in testing, we use autocomplete". That is only the first step. Three levels worth telling apart:
- Assistant — answers a request in one step: completes a line of code or replies in a chat. A person copies and runs the result;
- Agent — works in a plan → act → observe loop: makes a plan, calls tools (reads files, runs a test, opens a browser), looks at the result and decides the next step;
- Autonomous pipeline — an agent built into a process (for example CI), started by an event and acting without a person at every step.
Example. An assistant suggests a fix for a failed test. An agent runs the test itself, reads the error, changes the file, runs it again and stops when the test is green or the step limit is used up. A pipeline does this overnight for every failed test and leaves a PR.
The more autonomy, the more important the check. An agent really performs actions, so a mistake is not bad text but a changed file or an executed command.
Common mistakes: calling any chat an agent; giving a pipeline rights without describing what it may change; confusing a "green run" with a "correct result".
Short interview answer: "An agent differs from a chat by its loop with tools: it acts and observes the result itself, so its actions are limited by permissions and its result is verified".
Where an agent helps QA and where it does not
An agent helps with drafts, test maintenance and failure triage, while responsibility for risk, expected behaviour and the release stays with a person. It saves time on test plans, test generation, updating locators, hypotheses about a failure's cause and test data. An agent cannot know whether new behaviour is intended or a defect unless the requirements say so.
A manager asks: "Can an agent replace half of the testers?". It is more useful to split the work into tasks and see where an agent saves time and where it raises risk.
Where an agent helps:
- test plans and test cases — a draft from a feature description, which a person completes with risks;
- test generation — a first version from a plan, checked in a live application;
- test maintenance — updating locators after the interface changes;
- failure triage — gather the log, the trace and the commit changes and propose a hypothesis of the cause;
- test data — value variants, boundary cases;
- exploratory testing — hints on what else to check.
What stays with a person: risk assessment, the oracle (what counts as correct behaviour) and the release decision. An agent does not know whether new behaviour is intended or a defect unless the requirements say so.
Example. An agent triaged the overnight failures and grouped 20 tests under one cause: an endpoint changed. A person confirmed that this is a defect and not a new requirement, and only then filed a bug.
Common mistakes: handing the risk acceptance decision to an agent; taking a plan draft without reading it; measuring value by the amount generated.
Short interview answer: "An agent speeds up drafts, maintenance and triage, while responsibility for risk, expected behaviour and release stays with a person".
Levels of autonomy and the limits of agents
Agent autonomy is matched to the cost of a mistake: from advice a person carries out to merging on its own with selective review afterwards. Actions on production or secrets need explicit confirmation. Agents are limited by hallucinations, non-determinism, a finite context window and cost, so a step and budget limit is set and evidence is required instead of the word "done".
An agent updates locators at night and commits to main on its own. A week later everything is green, and a bug in payments slipped into production. The agent did not "go crazy": it was given too much autonomy without a check.
Levels of autonomy (from lower to higher):
- the agent only advises, a person executes;
- the agent acts, but every change or command is approved by a person (human-in-the-loop on every action);
- the agent acts within permissions, and a person approves the result in a PR before the merge (human-in-the-loop at the change level);
- the agent acts and merges itself; a person looks selectively, afterwards.
The level is chosen by the cost of a mistake: a plan draft or triage — wide autonomy; changing tests — through a PR; actions on production or secrets — only with explicit confirmation.
Limits to account for:
- hallucinations — invented APIs, locators, "passed" steps;
- non-determinism — two runs give different tests, so the result is verified, not reproduced;
- limited context window — a long session "forgets" the beginning; lasting rules go into a project file;
- cost — a loop without a step and budget limit can burn tokens without getting closer to a result.
Common mistakes: the same autonomy for all tasks; no stop criterion; believing the word "done" without evidence.
Short interview answer: "I match autonomy to the cost of a mistake, set a step and budget limit and demand evidence, not the agent’s word".