Human-in-the-Loop Testing: What People Decide, What Runs by Itself

Human-in-the-loop testing keeps three decisions with people: what to check, whether the test is right, and what a failure means. The rest runs by itself.

By Ait Nohaila, Business Development Representative 12 min read

Human-in-the-loop testing is automated testing in which people keep the decisions: what each test must check, whether the test is right, and what a failure means. The steps and the checks run without them.

AI can now create tests faster than a team can read them. Someone asks for a human in the loop, and the team adds an approval before every release. Two weeks later, the approval is a button people press without looking. The idea was right, and the person stood in the wrong place.

What is human-in-the-loop testing?

Definition

Human-in-the-loop testing, or HITL testing, keeps a person in charge of the testing decisions that need judgment.

  • Machines do the work that repeats: the clicks, the checks, the results.
  • People say what must be true, review the test, and decide what a failure means.

The person is there to decide, not to repeat the machine's work.

The term is wider than testing.IBM's definition reads: "Human-in-the-loop (HITL) refers to a system or process in which a human actively participates in the operation, supervision or decision-making of an automated system."

In machine learning, it often means the people who label data or give feedback to a model. This article is about testing software.

Human in the loop vs human on the loop vs human out of the loop

The three terms say how close a person stands to the work. People use them a little differently, so agree on the meaning inside your team.

Where the person isWhat the person doesAn example in testing
In the loopDecides before the work goes on.Reads a new test before it joins the suite, or decides whether a failure is a bug.
On the loopSets up the process, watches how it does, and improves it.Chooses which tests guard a build, then adds the check that was missing when a bug got through.
Out of the loopDoes not step in while the work runs.Lets a saved test replay its steps and its checks at every build.

Kief Morris, on martinfowler.com, argues for the second place: "The right place for us humans is to build and manage the working loop rather than either leaving the agents to it or micromanaging what they produce." He writes about building software with AI agents, and testing has the same question.

A good test process uses all three, each for a different decision. Being out of the loop is fine for a check that repeats, and wrong for deciding what is correct.

The trap: a person who approves every run

The first reflex is to add an approval at the end: someone looks at every run before the release goes on. It feels safe, and it fails in two ways.

It is slow

Twenty tests on ten builds a day make two hundred results, and most of them say the same thing.

It is blind

After a hundred green results, nobody reads the next one with care, so the red one gets the same quick click.

A person approves every run

  • Build 1Waits for a person
  • Build 2Waits for a person
  • Build 3Waits for a person
  • Build 4Waits for a person
  • Build 5Waits for a person

Five stops, and one of them mattered.

A person decides on a failure

  • Build 1Passed, goes on
  • Build 2Passed, goes on
  • Build 3Passed, goes on
  • Build 4A person decides
  • Build 5Passed, goes on

One stop, at the build that needed it.

The same five builds and the same person. What changes is where the person stands.

Morris describes the same bottleneck, in the same article, when people inspect every line of code that agents write.Dan Shapiro's five levels of AI coding describe that stage too.At level 3, he writes: "You are the human in the loop." The days then go to reviewing code.

A person should stand where a decision is needed, not where work is repeated.

Which testing decisions belong to a person?

Ask one question of each decision: does it need someone who knows the product, or does it follow a rule the team already set?

The decisionWho takes itWhy
Which workflows deserve a testA personIt depends on what a failure would cost your customers.
What must be true at the endA personOnly someone who knows the product knows the right total.
Is this the right test?A person, when it is created or changedA test can run perfectly and check the wrong thing.
Is the expected result on the screen?The engine, at every runThe same steps and the same checks, every time.
Does this build stop?The pipelineThe team set the rule once: a failed test fails the build.
Is this failure a bug?A personThe answer depends on what the team wanted.
Does the new look become the expected one?A personIt changes what every later run expects.

Someone also has to build the tests.How people, AI agents and the engine share all the work is in AI agents in software testing, and what it changes for a tester is in what a tester does when AI writes the tests.

Human in the loop QA: the three right places

Follow one test from the idea to a failed run. Three of its five stops need a person's judgment.

  1. A person

    1. Says what must be true

    The workflow, and the facts that prove it worked.

  2. A person, or an AI agent

    2. Builds the test

    Recorded once, or described in a prompt.

  3. A person

    3. Reviews the test

    Once when it is created, and again when it changes.

  4. The engine

    4. Verifies the application

    At every build, the same way, with nobody watching.

  5. A person

    5. Decides on a failure

    A bug, a change made on purpose, or a test to update.

The blue stops need judgment, so they stay with people. After a failure, the loop goes back to the application or to the test.

GUI Test Studio is built this way.It is a testing solution for any application, where QA teams and AI agents build, run and manage end-to-end tests visually, without code scripts.Running and verifying a saved test need no call to an AI model.

How to review a test an AI agent created

A review is short when the test can be read.In GUI Test Studio every step and every check is a named block on a visual timeline, whether a person or an AI agent created it.There is no generated test script to read.Start with the checks, because they say what the test proves.

AskWhat a good test shows
Does it end on a result a user cares about?A check of the invoice's total, not only of the page's title.
Would it fail if that result were wrong?The exact amount is checked, not only that an amount is there.
What happens to values that change?A date or an order number is checked by its shape.
What does each failure do?The test stops when the next steps need the result, and continues when they do not.
Can a colleague read it?Each block says what it does, such as Click Send invoice.
ExampleAn invoice test that passes and proves little

An assistant is asked to test invoicing. Its test fills in the form, clicks Send invoice, and checks that the words Invoice sent appear. It passes, and it would also pass on an invoice with the wrong tax.

A colleague from accounting looks at the timeline for two minutes. She asks for two more checks: the VAT line must read 20.00, and the total must read 120.00. From then on, every build is held to what she knows.

The checks a test can make, and when to use each one, are in choose the right check.

After a failure: a bug, an intended change, or an old test?

A person is needed again when a run fails.The Confidence Report shows the failed step, what was expected beside what the run found, and the run's video.It describes the difference, and the person names it.

Expected beside actual. Is the grey button a bug, or the new design? That decision is a person's.
What you seeWhat it isWhat you do
The total reads 118.00, and no price changedA bugCreate a bug report: a PDF, an Excel file or a Jira issue, filled in from the run.
The button reads Place order, as the new design asksA change made on purposeAccept the new look, then save. The next run expects it.
The workflow has a new step the test does not knowAn old testChange the test on its timeline, or describe the change to your AI assistant.
The test server was downNeither the app nor the testRepair the server, then run again.

Accepting is one click, and it can be undone until you save: see when the app changes on purpose.A tool that takes this decision by itself can hide a bug, which is the subject of self-healing tests.New to reports?Start with how to read a test report.

Where is the person when an AI agent changes a test?

AI agents reach a testing tool through MCP, an open standard explained in what MCP is in AI.The specification's page on tools, in its version of July 28, 2026, says where the person stands: "there SHOULD always be a human in the loop with the ability to deny tool invocations." A tool invocation is the moment the assistant uses one of the tools it was given.

GUI Test Studio's MCP server, called the connector, adds a step of its own.A tool that changes a saved test shows a preview first.It applies the change only when the call confirms it, and the assistant is instructed to ask you before.

You

In the Invoice test, also check the VAT line, and give the Invoice sent check more time.

Your AI assistant

Here is what I would change in the Invoice test:

  • Add a check: the VAT line reads 20.00
  • The check Invoice sent may wait 10 s

Shall I apply it?

You

Yes.

An example of a preview. The preview comes first, and the change is applied once the call confirms it. The assistant is instructed to ask before it confirms.

Two habits keep this useful.

  • Read the preview as you would read a colleague's change, because it says which check changes and how.
  • In your AI application, keep the approval on for every tool that writes.

What an assistant can do with a test, and what it asks before doing, is in create a test from a prompt.An assistant can also link a test to a requirement, but only a person can confirm the link.Requirements traceability and test coverage explains why.

Human in the loop software development: when a bug gets through

One bug shows the difference between the first two places.Morris puts it this way in his article: the "in the loop" way fixes what the agent produced, and the "on the loop" way changes the setup that produced it.

A wrong VAT line reached a customerWhat the team doesWhat it prevents
In the loopRepairs the wrong line, or asks the agent to repair it.This bug, this time.
On the loopAlso adds a check of the VAT line to the test that guards every build.The same wrong line, whoever or whatever writes the next change.

Do both.The repair helps one customer, and the check helps every build after it.How far a team can go with many agents at work is in what a software factory is, and the dark factory asks what happens when nobody reads the code.

How to put a person in the loop in five steps

Start with one workflow that would hurt if it broke.

  1. 1

    Write down what must be true

    Choose one workflow. Write the two or three facts that prove it worked, such as the total, the message and the saved record.

  2. 2

    Create the test

    Record the workflow once in GUI Test Runner-Recorder, or describe it in a prompt to your AI assistant: Claude, ChatGPT with Codex, or a local AI model, one we provide or one you bring.

  3. 3

    Review the test on the timeline

    Open the test in GUI Test Studio. Compare its checks with the facts you wrote, then add the missing ones.

  4. 4

    Let it run at every build

    Put the test in your pipeline with gtr-cli.A failed test fails the build, and nobody has to watch the runs that pass.

    In your pipeline
    gtr-cli run tests --countdown 0 --junit results\junit.xml --artifacts results\artifacts
  5. 5

    Decide on each failure

    Open the Confidence Report of the failed run.Create a bug report, or accept the new look if the change was made on purpose.

What to know before you start

Good to knowWhat it means
A test checks what it was told to checkA weak test passes on a broken app. The review of the test is where a person catches that.
It is one gate among severalGUI Test Studio does not review source code, security or architecture. Keep those reviews.
Accepting a result changes the testEvery later run expects the new look. Agree on who may accept, and keep the test files in version control, so each change has an author.
Exploring stays with peopleA saved test follows its path. A curious person finds the problem nobody planned for.

Key takeaways

  • 1A human in the loop decides. The machine does the work that repeats.
  • 2In, on and out of the loop are three places, and a good test process uses each one for a different decision.
  • 3Approving every run is the wrong place: the person becomes the bottleneck and stops looking.
  • 4Three decisions stay with people: what must be true, whether the test is right, and what a failure means.
  • 5An AI agent can do a lot without the last word: in GUI Test Studio it previews its change to a saved test, and it is instructed to ask before it confirms.

Questions

What is human-in-the-loop testing?

Human-in-the-loop testing is automated testing in which people keep the decisions that need judgment. They decide what a test must check, review the test, and decide what a failure means. The steps and the checks run by themselves at every build.

What does human in the loop mean?

Human in the loop, or HITL, means that a person takes an active part in an automated system. The person may operate it, supervise it or take its decisions. In software testing, the useful part is the decisions, because the repeated work does not need a person.

What is the difference between human in the loop and human on the loop?

In the loop, a person decides before the work goes on. On the loop, a person sets up the process, watches how it does and improves it, without approving each piece of work. A test suite needs both: in the loop for a new test or a failure, on the loop for the runs.

Does a person have to approve every test run?

No. A run repeats the same steps and the same checks, so it can pass or stop a build without anyone watching. A person is needed when the test is created or changed, and when a run fails.

Can AI test software without a human in the loop?

AI can create a test and describe a failure, but it does not know what your product must do. A test made without that knowledge can pass on an app that charges the wrong amount. Someone who knows the product decides what must be true, and what a failure means.

Who decides whether a failed test is a bug?

A person who knows the product. A report can show the expected result beside the actual one and explain the difference. Whether the change is a bug, or was made on purpose, depends on what the team wanted.

How do I review a test that an AI agent created?

Read its checks before its steps. Ask whether the test ends on the result a user cares about, and whether it would fail if that result were wrong. In GUI Test Studio you read both on a visual timeline, with no test script.

Can an AI assistant change my tests without a person?

With GUI Test Studio's connector, a change to a saved test is shown as a preview first. It is applied only when the call confirms it, and the assistant is instructed to ask you before it confirms. Keep the approval of your AI application switched on for tools that write.

IBM, Claude, ChatGPT, Codex, Excel and Jira are trademarks of their respective owners.

All articles