Turn-Level Testing Workflow

Turn-level testing workflows are best for regression tests on individual requests. This can include testing whether the agent selects the correct subagent or action.

  1. Define tests. Describe your test cases and scorers in AiTestingDefinition metadata. See Build Tests with AiTestingDefinition.
  2. Deploy. Deploy the metadata with Metadata API or Salesforce CLI.
  3. Run, poll, and get results. Call the Connect API resources. See Run Tests with Agentforce Testing Connect API.

To define, deploy, and run turn-level tests from the command line, use the --test-runner agentforce-studio flag. See the Agentforce DX command reference.

See Also