QA glossary
What is an AI hallucination?
A hallucination is wrong information that a large language model (LLM) produces and presents as if it were true. The ISTQB glossary defines it as "Wrong information created by an LLM." The answer reads fluently, which is why it is easy to miss.
An example from QA practice
A team asks an AI assistant to write test cases from a user story about password reset. The assistant returns twelve cases. Ten are sound. One checks that the reset link expires after 24 hours, a rule that appears nowhere in the story or the product, and one calls an API endpoint that does not exist. Both look as convincing as the other ten. A tester who runs them without checking the source ends up reporting a "bug" against a requirement nobody wrote.
Why it matters when you buy testing
- In your product: if your app has a chatbot or an AI feature, a confident wrong answer reaches your customer with your name on it.
- In your testing: if a supplier uses AI to write tests or bug reports, a hallucinated test can pass for the wrong reason or flag a defect that is not there.
- Ask the supplier: who checks AI-generated test cases against the real requirements before they count?
Where the definition comes from
The quoted definition is from the ISTQB glossary. The ISTQB Testing with Generative AI syllabus (CT-GenAI v1.1, section 3.1.1) gives examples from testing work: fictitious test cases, test scripts that do not run, and tests for acceptance criteria that do not exist. Section 3.1.2 lists the ways to catch them: compare the output with documentation and known system behaviour, ask a subject matter expert, and check outputs for consistency with each other.
Common questions
Can hallucinations be eliminated?
Techniques such as grounding the model in trusted documents and checking its output automatically reduce how often hallucinations happen, but none of them removes them. The safe approach is to assume some will occur and to put a check between the model and anyone who relies on its answer.
How do you test an AI feature for hallucinations?
Ask questions whose correct answers are known and compare each answer with the source. Add questions the documentation does not cover, where the right answer is to say so, and questions that invite a made-up answer, such as asking about a feature that does not exist. Record each wrong answer with the exact prompt, so the problem can be repeated and rechecked.
Is a hallucination the same as a bug?
It behaves like one, because a user receives wrong output, but the cause differs. In ordinary software a bug is a flaw in code that can be located and fixed. A hallucination comes from how the model generates text, so the fix is often a change to the prompt, the data it can consult, or the checks around it.
How BetterQA does it
Our own tools use AI, so we apply the same rule to them that we apply to a client's product: an engineer reviews every AI-generated result before it counts. A test case, a bug report or a finding that cannot be traced to the requirement or to observed behaviour does not go into BugBoard. Wrong answers can arrive with evidence that looks real: our AI sales agent picked someone at the wrong company in 11 of 47 searches, as this write-up shows. When we test a client's AI feature, our engineers check its answers against the product's own documentation and data, the cross-verification the syllabus describes. For chatbots, this is our chatbot testing service.