The mabl agent can author browser, API, and mobile tests, but what it can build differs by test type. This article outlines the agent's capabilities in each one:
Name change
Agentic test authoring was formerly described as the Test Creation Agent and GenAI Test Creation.
Browser tests
In a browser test, the agent can implement any type of step available in the mabl Trainer. For the full range of steps and interactions at its disposal, see interacting with your web app in the mabl Trainer and adding and editing steps in the mabl Trainer.
To create or edit a browser test with the agent, see agentic test authoring for web apps.
How the agent chooses assertions
The agent can perform both HTML assertions and visual assertions:
- HTML assertions - the agent prefers element assertions whenever possible for their speed of execution and reduced cost.
- Visual assertions - the agent uses visual assertions when validating multiple elements or the negation of an element, such as "error message is not present." The agent also uses visual assertions when the validation involves image or visual content, or is otherwise more complex than asserting against the text of an element on the page.
If an assertion needs to work differently in your app, you can tell the agent which approach to take in your test prompt or in agent instructions.
API tests
Provide mabl with a test intent and information about your API. The agent builds out test steps based on your input and imports API flows if they are relevant to your test intent. Add in assertions and variable assignment as needed to complete the test.
Generated API steps do not include snippets, and the agent does not generate the OAuth 1.0 and OAuth 2.0 auth types. See creating API tests with GenAI for the full details and the rest of the limitations.
Mobile tests
Provide mabl with a test intent, and the agent creates an outline in the Trainer that consists of tasks, visual assertions, and, if relevant, existing flows. The agent does not record steps for you: build out the tasks and test out the visual assertions yourself. See create a mobile test outline with the mabl agent.