SaveMyCert
Log in
5 of 5 free questions left today·for 10 a day
Introduction to Generative AI for Software Testing

CT-GenAI: LLM Capabilities for Test Tasks, AI Chatbots and LLM-Powered Testing Applications

13 min readCT-GenAI · Introduction to Generative AI for Software TestingUpdated

Leveraging generative AI in software testing means using large language models (LLMs) for test tasks across the whole test process, through two complementary interaction models: AI chatbots and LLM-powered testing applications. This lesson covers CT-GenAI syllabus section 1.2: the key LLM capabilities for test tasks that the syllabus lists (requirements analysis, test case creation, test oracle generation, test data generation, test automation support, test result analysis and testware creation), how chatbots and API-integrated applications differ, when to choose each, and why prompt engineering decides the result in both.

What you’ll learn
  • Give examples of the key LLM capabilities for test tasks listed in the CT-GenAI syllabus
  • Map a test task to the capability it uses by its input and its output
  • Tell test oracle generation apart from test data generation, and testware creation from test result analysis
  • Explain why requirements should be clarified with stakeholders before an LLM generates test cases from them
  • Compare AI chatbots with LLM-powered testing applications by access, flexibility, integration and typical use
  • Choose a chatbot, an LLM-powered application or both for a given testing need
  • Explain why strong prompt engineering is needed whichever interaction model is used

What LLMs bring to software testing

Large language models bring one core strength to testing: they read and write natural language and code. The CT-GenAI syllabus lists what that adds up to: LLMs process natural language and code, generate coherent text and code, answer questions, summarise information, translate languages and, in a multimodal context, analyse images.

In a test project, that means an LLM can interpret the artefacts testers work with every day (requirements, specifications, screenshots, code, test cases and defect reports) and generate elements of the testware from them. Because those artefacts exist at every stage, LLMs can support activities throughout the whole test process, from analysing the test basis to reporting on completion.

Keep the division of labour clear. The LLM generates: scripts, expected results, summaries, documents. A test tool or a person runs the tests against the system and records the actual results, which the LLM can then be asked to analyse. The model itself does not retain your project; it works from the prompt, the conversation and any context the tool supplies, so the quality of what it produces depends on the test basis you give it.

The syllabus then lists seven key capabilities for test tasks, introduced as some of the key ones (examples, not a closed list), and covered in the next sections. How tokens, context windows and model types work is taught in the lesson on generative AI foundations and key concepts.

Key LLM capabilities for test tasks

The syllabus lists these seven as key LLM capabilities for test tasks. Each one is defined by its input and the output it produces, and that is the most reliable way to tell them apart:

CapabilityTypical inputWhat the LLM produces
Requirements analysis and improvementRequirements, user stories, other test basisAmbiguities, inconsistencies and missing information, plus questions to clarify them with stakeholders
Test case creation supportRequirements, user stories, other test basisSuggested test objectives and drafted test cases
Test oracle generationRules or specification plus given test inputsExpected results for those inputs
Test data generationField definitions, data rules, rangesDatasets, boundary values and combinations of test data
Test automation supportTest case descriptions or existing test scriptsNew test scripts, or suggested changes and test techniques for existing scripts
Test result analysisTest results, failure logsSummaries, and anomalies classified by severity and priority
Testware creationProject information, results, scope changesTest plans, test reports and defect reports, kept up to date as the project evolves

When you need to map a task to a capability, ask two questions: what is the model given, and what kind of artefact comes back? A request that returns questions about a requirement is requirements analysis even if it mentions test cases; a request that returns what the system should do for inputs that are already listed is oracle generation even if it mentions data.

Requirements analysis and test case creation support

Requirements analysis and improvement means using an LLM to examine requirements and other parts of the test basis for ambiguities, inconsistencies or missing information, and to generate meaningful questions that clarify them in discussions with stakeholders. A requirement such as "the export shall handle large reports without noticeable delay" shows the pattern: the useful output is not a test but questions, such as what size counts as large and what delay is acceptable, and to whom. That makes this capability most valuable early, for example before a refinement meeting and before test design starts.

Test case creation support means using an LLM to suggest test objectives and help generate test cases from system requirements, user stories or any other element of the test basis.

The two capabilities work in sequence. Take a story that says "users are notified of important account changes": which changes are important, on which channel, and how soon? Sound practice is to let the LLM raise those points as questions, settle the answers with stakeholders, and only then generate test cases. The principle is that a test case is only as definite as the requirement behind it: any unclear point the model resolves by itself becomes an unstated assumption inside the tests and their expected results, and nobody has agreed to it.

Making a requirement easier to read is also different from making it testable. Requirements improvement is about removing ambiguity, inconsistency and gaps, not about style.

Test oracle and test data generation

Test oracle generation means using an LLM to help generate expected results: given a set of test inputs and the rules that govern them, the model states what the system should do or return. Test data generation means using an LLM to produce the inputs: datasets, boundary values and combinations of test data.

These two are easy to confuse because both deal with values. The difference is direction:

Test data generationTest oracle generation
ProducesInputs to feed the systemThe outputs the system should give for inputs
Example request"Produce library-member records with renewal dates just before, on and just after the cut-off""For each of these sequences of login attempts, state whether the account should end up locked"
Lockout-rule exampleSequences of failed attempts at and around the lockout limitLocked or not locked for each sequence

Test data generation adds the most when the request asks for what testers would otherwise derive by technique: boundary values (for a username of 3 to 20 characters, lengths such as 2, 3, 20 and 21) and combinations with other inputs (each of those lengths with each account type the form offers). Typical values alone are still test data, but they leave the edges, where defects cluster, untested.

Oracle output is only as good as the rules supplied. Give the model the specification or rule table it must apply; an LLM inventing expected results from general knowledge is guessing, and every generated expected result still needs checking before it is trusted.

Test automation support

Test automation support means using an LLM to generate test scripts from test case descriptions and to improve existing test scripts by suggesting changes and identifying appropriate test techniques.

Two situations show the two halves:

  • Generating scripts. A team has written test case descriptions for its order-history API and wants them as automated tests. The LLM's output here is scripts in the team's framework; if the output were new test cases, the capability would be test case creation support.
  • Improving scripts. An existing script checks a travel-date picker with one date in the middle of the bookable window. A useful suggestion names a test technique, such as equivalence partitioning and boundary dates at each end of the window, and turns the script into a data-driven one. Judge any suggested change by whether it increases what the test actually covers.

Generated or modified scripts are code like any other: they need review and a run before they join the regression suite.

Test result analysis and testware creation

Test result analysis means using an LLM to analyse test results by creating summaries and classifying anomalies by severity and priority. It is the capability for triage: when a long test cycle across several environments leaves many anomalies, a summary grouped and ranked by severity and priority shows the team where to start.

Testware creation means using an LLM to help create documents such as test plans, test reports (including progress reports) and defect reports, and to keep them updated as the project evolves. If the release date moves and a new mobile platform enters scope, the test manager can use an LLM to update the test plan's schedule and environments and to draft the next progress report on the new basis.

The boundary between the two is the output. Test result analysis condenses many results into a summary and a severity and priority ranking. Testware creation produces or maintains a test document, such as a plan, a report or an individual defect report. Testware here means the work products of the test process, not general project or development documents.

AI chatbots: conversational, immediate, iterative

An AI chatbot is a user-friendly, conversational interface that lets testers communicate directly with an LLM in natural language: they type questions, commands or prompts and receive immediate, contextually aware responses.

The defining habit of chatbot use is iterative refinement. If the first answer is too broad, the tester narrows it within the same conversation, for example with prompt chaining (breaking the work into steps and feeding each result into the next; see the lesson on prompting techniques). The conversation keeps its context, so each follow-up builds on what has already been said rather than starting again.

The syllabus describes chatbots as particularly effective for:

  • routine tasks and exploratory testing;
  • onboarding new testers, by giving quick access to testing knowledge and practices;
  • scenarios needing fast feedback, clarification of test concepts, or dynamic exploration of requirements and potential test cases;
  • non-technical stakeholders, because the intuitive interface needs no programming, which broadens the user base and encourages adoption.

The trade-off is that a chatbot needs a person in the loop. Someone has to open it, paste in the input and read the answer, so it is a poor fit for work that must run unattended on every build.

LLM-powered testing applications: integrated via APIs

An LLM-powered testing application integrates LLM capabilities via APIs to perform well-defined and often automated testing tasks. Instead of a person chatting, a tool, script or pipeline sends the request and uses the response.

Compared with chatbots, these applications offer greater customisation and scalability, so organisations and tool vendors can embed generative AI into existing test frameworks and tools. That makes them the fit for repetitive or complex tasks that must run without anyone starting them, such as test case generation inside a test management tool, defect analysis, or test data synthesis on every commit or build.

The syllabus names a more advanced implementation: organisations can create AI agents designed to perform certain testing roles. Agents are covered in chapter 4 of the syllabus. "More advanced" is not the same as "better for every need": choose the simplest setup that fully meets the requirement.

Chatbot or LLM-powered application: choosing an interaction model

Choose the interaction model by who starts the task and how often it runs: a chatbot when a person wants to explore, ask and refine; an LLM-powered application when a well-defined task must run repeatedly, at scale or without anyone starting it. The syllabus presents them as complementary, so many teams use both.

AI chatbotLLM-powered testing application
AccessConversational interface, used directlyLLM called through APIs by tools and pipelines
Who starts itA person, each timeThe tool, pipeline or schedule
Refining outputIteratively in the dialogue (e.g. prompt chaining)By changing the integration's prompts and configuration
StrengthsImmediate feedback, flexibility, accessible to non-technical usersCustomisation, scalability, automation, embedding in frameworks
Typical usesExploring requirements and test ideas, clarifying concepts, onboarding, routine questionsTest case generation in tools, defect analysis, test data on every build
Advanced form-AI agents designed for specific testing roles

Worked reasoning for typical situations:

  • A product owner wants to talk through edge cases for an upcoming story and react to ideas as they come: a chatbot, because the work is interactive and needs no programming.
  • Every time a requirement changes in the test management tool, the team wants draft test cases attached to it automatically: an LLM-powered application, because no person starts the task and it repeats.
  • A team uses a chatbot to draft exploratory test charters and also wants the defect tracker to propose a severity for each new report: both, each where it fits, since the syllabus treats the two models as complementary.

Prompt engineering matters in both models

Whichever way testers interact with an LLM, the syllabus states that successful use of generative AI in testing requires strong prompt engineering: carefully designed prompts with clear, specific instructions improve the likelihood that outputs are accurate, relevant and aligned with the testing objectives, and make the support more consistent and reliable.

This applies to integrations just as much as to chat. The prompts inside an LLM-powered application are written by someone, and they are where output quality is decided. If a defect-triage integration returns vague one-line summaries, the lever is the instruction itself: rewrite its prompts to state exactly which content and format each output must have. An instruction that never said what was wanted stays underspecified whatever else changes around it.

Prompt structure and techniques such as prompt chaining, few-shot prompting and meta prompting are taught in chapter 2 of the syllabus. Checking outputs for hallucinations, reasoning errors and bias is chapter 3.

Tip. Questions on this topic are mostly at the understanding level. Expect a short test task or scenario and be asked which LLM capability it represents, or which use of an LLM best fits a stated need; read what the model is given and what it must return, because the near-twin capabilities (oracle vs data, testware creation vs result analysis, requirements analysis vs test case creation) are separated by that alone. Other items compare AI chatbots with LLM-powered testing applications, ask which fits a user or a pipeline, whether both should be used together, what the advanced form of an integration is, and what the syllabus says makes either model succeed.

Key takeaways
  • LLMs interpret requirements, specifications, screenshots, code, test cases and defect reports and generate testware, so they support the whole test process.
  • The syllabus lists seven key capabilities as examples, not a closed list: requirements analysis and improvement, test case creation support, test oracle generation, test data generation, test automation support, test result analysis, testware creation.
  • Identify a capability by what the model is given and what it returns: questions about a requirement, test cases, expected results, inputs, scripts, ranked summaries or documents.
  • Test data generation produces inputs (datasets, boundary values, combinations); test oracle generation produces the expected results for given inputs.
  • Clarify ambiguous requirements with stakeholders before generating test cases; never let the model silently choose a meaning.
  • AI chatbots: direct conversational access, immediate contextual answers, iterative refinement such as prompt chaining; good for exploration, fast feedback, onboarding and non-technical users.
  • LLM-powered testing applications: LLM access via APIs for well-defined, often automated tasks, with more customisation and scalability; AI agents for testing roles are the advanced form.
  • The two models are complementary, and both depend on strong prompt engineering with clear, specific instructions.

Frequently asked questions

What are the key LLM capabilities for test tasks in CT-GenAI?

The CT-GenAI syllabus lists seven as examples of key capabilities (it introduces them as "some" of the key ones): requirements analysis and improvement, test case creation support, test oracle generation, test data generation, test automation support, test result analysis, and testware creation such as test plans, test reports and defect reports.

What is the difference between test oracle generation and test data generation?

Test data generation produces the inputs for testing, such as datasets, boundary values and combinations of values. Test oracle generation produces the expected results for given inputs, for example the fee or discount the system should return for each listed order.

When is an AI chatbot a better choice than an LLM-powered testing application?

An AI chatbot suits work a person drives interactively: exploring requirements and test ideas, getting fast feedback, clarifying test concepts, onboarding new testers and helping non-technical stakeholders, because it offers a direct conversational interface and lets the user refine output step by step.

What is an LLM-powered testing application?

An LLM-powered testing application integrates an LLM through APIs to perform well-defined, often automated testing tasks such as test case generation, defect analysis or test data synthesis. It offers more customisation and scalability than a chatbot and can be embedded in existing test frameworks; AI agents for testing roles are its more advanced form.

Can a team use chatbots and LLM-powered testing applications together?

Yes. The CT-GenAI syllabus describes them as complementary ways to use generative AI, so a team can use a chatbot for interactive exploration and an API-integrated application for well-defined tasks that repeat, such as drafting test cases whenever a requirement changes in the test management tool.

Do LLM-powered testing applications still need prompt engineering?

Yes. The syllabus says strong prompt engineering is required whichever interaction model is used. An integration's prompts decide its output quality, so weak results from a tool are usually fixed by rewriting its prompts with clear, specific instructions on content and format.

Can an LLM execute tests or remember a project's test history?

Not on its own. An LLM generates text and code, such as test scripts, expected results and summaries, from the inputs it is given. A test tool or a person runs the tests against the system and records the actual results. The model itself does not retain a project: it works from the prompt, the conversation and any context the tool supplies.

Source

This lesson covers the "Introduction to Generative AI for Software Testing" domain of the official CT-GenAI exam guide. Vendors revise their guides — check the source for the current version.

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?