This page provides guidance for developers using the Testing API or the Agentforce DX CLI. To learn about the Testing Center, see Agentforce Testing Center in Salesforce Help.
Prerequisites
To test agents, you must have Agentforce enabled with at least one agent active. See Set up Agents in Salesforce Help.
Agent testing is available only in sandboxes. Note that running tests consumes requests and credits and can modify data.
Important
Testing API Workflow
This diagram shows the high-level workflow for creating, deploying, and running tests:
Each step in the workflow can be completed using multiple methods:
Create Tests: Build tests programmatically using Metadata API or Agentforce DX.