Getting started with the Step AI Agent
The Step AI Agent ships as a Step Automation Package. Choose how you want to run it; each setup produces the same kind of validated automation package.
Before you start
The AI Agent explores the application and sends content to an external AI model. See Data and privacy for details.
Step Studio
Get started in Step Studio to describe test cases and inspect results in a visual editor on your computer.
CLI and IDE
Get started from the CLI to run the agent from your terminal, IDE, or CI/CD pipeline alongside your code.
Step Platform
Get started on a Step instance to run the agent centrally on shared infrastructure.
What you get
The run publishes to apDirectory the finished package and the material it produced on the way there:
-
The automation package. The test plans, the keyword declarations and their implementation. It runs on Step without the agent.
The plan generated from the Wikipedia example in the setup guides, with each step named in the words you used, and stamped with the run that produced it:
plans: - name: "demo_wikipedia_article" metadata: origin: ai ai: executionId: "6ac4fc4f09314a0cdb189814" root: testCase: nodeName: "demo_wikipedia_article" children: - callKeyword: nodeName: "Navigate to the article URL" keyword: "openWikipediaArticle" - callKeyword: nodeName: "Verify the first heading reads the expected title" keyword: "verifyArticleTitle"And an extract from the keywords it calls. Each one performs its step and asserts the outcome it owns, records what it observed, and attaches a trace:
export async function verifyArticleTitle(input, output, session, properties) { const expectedTitle: string = input?.expectedTitle ?? DEFAULT_EXPECTED_TITLE; const { context, page } = requirePage(session); await startTracing(context); try { const heading = page.getByRole('heading', { level: 1 }); await heading.waitFor({ state: 'visible' }); const actual = (await heading.innerText()).trim(); output.add('actualTitle', actual); if (actual !== expectedTitle) { throw new Error(`Expected first heading "${expectedTitle}" but found "${actual}"`); } } finally { await safeStopTracing(context, output, 'verifyArticleTitle'); } } -
The keyword specification. How each step is to be driven, written and reviewable before any code existed.
-
The request, verbatim. The instructions exactly as you gave them, so the same run can be repeated later.
-
The report. The verdict, what each test case was verified by, how well the plan covered the request, and what the run cost in time and money.
-
Logs and traces, one set per phase, including the browser trace from the exploration and the log of the execution.
A run that fails publishes to a sibling directory instead, so a previously working package is never overwritten.
Troubleshooting
no handler for NodeFunctionType. No Node.js agent is available. On a central run the instance has none connected, or it is down. The agent’s keywords are Node keywords and execute nowhere else.
doesn't contain the AP descriptor file. --package is pointing at a directory holding no automation-package.yaml. It must point at the Step AI Agent’s own package, not at the package you are generating.
A green pipeline that publishes no test results. --reportDir is not where the JUnit file lands: the report is written into a timestamped subdirectory of it, such as reports/20261007-153122-453428/junit/junit.xml. A collector matching reports/*.xml therefore matches nothing and the job passes while reporting nothing. Match reports/**/*.xml instead.
Version mismatch. The server version (x) is incompatible with the current CLI version (y). The CLI refuses to drive an instance on a different minor version. It checks before uploading anything, so the target project is left untouched. Use a version-matched instance; --force skips the check but overrides a deliberate guard.
has mode "extends", but no test case matching that name exists in the reused codebase. The name you gave does not match any test case in the package being extended. Check specs/plan.yaml for the name the package actually holds. The run stops in its first phase, before any model work, so nothing is spent.
Authentication errors from the model calls. ANTHROPIC_API_KEY was found in neither the Step Parameter nor the environment of the process running the agent. The run log records which source it resolved, and warns when the parameter is missing.
The run stops when the generated package is executed. The Step CLI is missing from the PATH of the machine running the agent. The agent calls it to run the automation it has just generated, so the run fails at that point rather than at startup. A healthy local execution logs Local execution supports the following agent types: Node.js, Java.
Data and privacy
The agent sends content from the system under test to a large language model. Before pointing it at an application that holds real data, read Data and privacy.
Next steps
Follow a worked end-to-end example, in whichever role fits your work:
- Agentic test automation with Step Studio — delegate the journey from Step Studio, then schedule it against the live application
- Agentic test automation from the command line — drive the agent from the CLI, extend the package, and gate your pipeline on it
Both cover the same scenario and can be followed independently.