AI11+26.3.1 AI Assistants for Planning and Generating Tests
11.1+ QF-Test offers AI assistants that work together with you on test suites. An assistant operates the application under test itself, records what it does and inserts the result into the currently open test suite - if no test suite is open, a new one is created automatically. The assistant for generating tests for a website or application can create complete test suites from a textual description or a test plan: a hierarchical structure of Test sets, Test cases and Test steps filled with recorded interactions and checks that can subsequently be refined manually or executed without any further AI involvement.
The assistant works step by step and designs one test case at a time, beginning with the most important parts of the application. The test suite is therefore in a usable state at all times, and you can stop the session whenever you are satisfied with the result.
The assistant can insert the same kinds of nodes you would create by hand: mouse and key events, text input, checks, component waiters and comments, but also Procedure calls with parameters and result variables, new Procedures with parameters, variables, return values and control structures such as If and Else. It checks the test suite and its included suites for useful procedures and reuses them instead of recording the same interactions again. For everything that is needed more than once, it creates new procedures and organizes them in Packages. AI Instructions are only inserted for the few actions that cannot be expressed with other node types.
This assistant is useful as a starting point for new test projects and for extending existing test suites: instead of creating tests from scratch, the AI provides a sensible, runnable first version that you can then expand and customize as needed.
11.1+ Should an assistant insert an AI Instruction, it can be converted into non-AI-based QF-Test nodes in two ways: by enabling "Recording sequences" while executing the AI Instruction, or by using the "Record instruction into nodes..." button on the node.
26.3.1.1 Prerequisites
At least one AI model must be configured in QF-Test to use the AI assistants. Configuration is done in the options dialog under »Artificial Intelligence«. If no model is set up yet, opening the assistant shows an information dialog with the button Open AI Settings that takes you directly to the configuration.
26.3.1.2 Opening the Dialog
Open the AI Assistant dialog via the corresponding
toolbar button, located directly next to the Quickstart Wizard button.
26.3.1.3 Dialog Fields

- Assistant
-
11.1+ select the assistant to work with. a short description of the selected assistant is shown below the list. the following assistants are built in:
- generate tests for a website or application: explores the application and builds a structured test suite by recording its actions, as described in this section.
- interact with a test suite: inspects, reviews or extends an existing test suite, by recording interactions with the application or by inserting nodes directly.
- interact with client application ui: carries out the instructions in the application under test, for example for exploratory tests.
- general assistant: a general-purpose assistant that can use all QF-Test ai tools (see Built-in MCP Tools).
you can add your own assistants via prompts, see "Customizing Prompts".
- Instructions
-
Enter the instructions for the assistant here. For the test generation assistant this can be a plain-language description of the functionality to be tested, the workflows or scenarios to be covered - for example login flows, form inputs, navigation paths, or business processes - or a complete, predefined test plan. The assistant follows your instructions with priority over its own defaults. The field may be left empty if the assistant should decide on its own what to do.
Alternatively, use the Fill from file button to load the contents of a file directly into the text field. Supported formats are:
.txt,.md,.pdf,.xls,.xlsx, and.docx. - Explore application with AI agent
-
This option group determines whether and how the AI works with the application under test. Choose one of the following options:
- Use connected application
- If an application is already connected to QF-Test, the AI can use it directly. The option displays the name of the connected application.
- Run existing Dependency
- If the current test suite already contains a root-level Dependency for launching an application, it can be executed. The option displays the name of the Dependency.
- Run from file or URL
- Enter the URL of a web application or the path to an executable file as well as the application type. QF-Test automatically creates a corresponding Dependency in the test suite and launches the application.
- Run without application
- The AI does not work with an application, but only with the test suite and your instructions.
Note AI-assisted exploration may take several minutes depending on the application and the AI model used.
- AI model
- Select the AI model to use. The available entries correspond to the models configured in the QF-Test options. Use the Configure AI models button to go directly to the settings.
26.3.1.4 Starting the Session
Click Start AI session to start the process. Progress is shown in the QF-Test status bar. The duration depends on the scope of the instructions and the model chosen, and can range from a few seconds to a long time for extensive test suites. You can cancel the process at any time by clicking the Stop button in the toolbar. Everything that was inserted into the test suite up to that point is kept.
Every session creates a run log in which all steps taken by the agentic AI are comprehensively documented. The log can be reviewed in the run log window during the session or after completion.
When the session ends, the final message of the assistant is displayed. The test generation assistant reports which areas of the application were covered, which were not and why, and which assumptions or uncertain steps you should double-check. The new tests are displayed directly in the open test suite. If the session fails, for example because the model is unreachable or the time limit is exceeded, an error dialog appears with a corresponding message.
26.3.1.5 Generated Test Structure
The result of the test generation is a hierarchical structure in the test suite:
- Test sets group thematically related tests together, e.g. one per part of the application.
- Test cases within Test sets represent individual test scenarios.
- Test steps divide each Test case into logical sections.
- The nodes within the Test steps are the recorded or generated interactions: mouse and key events, text input, checks, component waiters and Procedure calls. If required, they are accompanied by control structures and variables.
- Reusable sequences are placed in Procedures that are organized in Packages.
- 11.1+ AI Instructions are the exception. They only appear for actions that cannot be recorded or generated, such as complex conditions or checks.

The nodes inserted by the assistants are marked with the tag
@ai_generated in their comment, which makes them easy to
find and review.
Note Because the generated tests consist of regular QF-Test nodes, they can be executed without an AI agent and need no further conversion. This does not apply to AI Instructions, which can be converted to concrete test steps using the "Record instruction into nodes..." button, or by manually replacing them with appropriate test steps.
26.3.1.6 Customizing Prompts
11.1+
The assistants are defined by prompts. The Assistant dropdown
lists all assistant MCP prompts
from the files in the "Test suite files for MCP tools and prompts" table, which by
default are the shipped file qfs-ai.qft and the file
user-ai.qft in the QF-Test system directory. Both can be
opened via
»File« - »Bookmarks«.
The name and the description of a prompt are displayed in the dropdown
and below it.
Only prompts located in the prompt Package assistant are offered in the Assistant
dropdown. This applies to the shipped prompts as well as to your own: Place every Procedure that
defines an assistant in a Package named assistant within your prompt definitions.
To add your own assistant, you do not have to change any shipped prompt.
Create a Procedure with a parameter userInstructions in
user-ai.qft in the Package prompts.assistant, document it with the @mcp/prompt
doctag as described in "Create Custom MCP Tools and Prompts", and let it
return the prompt text. When the AI assistant is executed, the parameter userInstructions is
filled with the text the user entered in the dialog. If the Procedure has no parameter named
userInstructions, the user's text is simply appended to the end of the prompt's return value.
The parameters suitePath and client, if declared, receive the
path of the suite and the name of the connected application. Your
assistant then appears in the dropdown after reopening the dialog.
To change the behavior of a shipped assistant, create a new prompt as
described and give it the same MCP name as the shipped assistant prompt.
QF-Test will then prefer your version of the prompt. The shipped prompts are
a good starting point and can be copied from qfs-ai.qft.