testing-agentforce

Run batch tests on Agentforce agents via Salesforce CLI.

Updated May 19, 2026
One-click install
npx skills add https://github.com/dmckeeSF/mcpdctn0507 --skill testing-agentforce-dmckeesf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-agentforce
Source: https://github.com/dmckeeSF/mcpdctn0507/tree/main/.agents/skills/testing-agentforce
Command: npx skills add https://github.com/dmckeeSF/mcpdctn0507 --skill testing-agentforce-dmckeesf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sf, jq, python3, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the need for a robust testing framework for Agentforce agents, ensuring their reliability and performance before deployment.

Core Features & Use Cases

  • Ad-Hoc Preview Testing: Rapid testing during development with real-time tracing and debugging.
  • Batch Testing: Automated testing of test suites with integration into CI/CD pipelines.
  • Action Execution: Direct invocation of Flow and Apex actions via REST API for isolated testing.
  • Testing Workflow: Supports two modes of testing and direct action execution for flexibility.

Quick Start

Run a batch test on your Agentforce agent with the command sf agent test run --json --api-name <Test_Name> --wait 10 --result-format json -o <org>.

Frequently Asked Questions about testing-agentforce

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run batch tests on Agentforce agents using Salesforce CLI?

Run batch testing on Agentforce agents using the sf CLI command `sf agent test run` with JSON output. Specify the test API name, wait time, result format, and target org to execute automated test suites directly.

Can I test Flow and Apex actions directly via REST API for Agentforce?

Yes, you can directly invoke Flow and Apex actions via REST API for isolated testing. This action execution capability allows you to test specific components independently of full agent preview sessions.

Do I need specific versions of sf CLI and jq to test Agentforce agents?

Yes, testing Agentforce agents requires sf CLI version 2.121.7 or higher for direct API access to preview sessions, and jq for processing JSON data during test suite deployment and execution workflows.

What is the difference between ad-hoc preview testing and batch testing for Agentforce?

Ad-hoc preview testing enables rapid development testing with real-time tracing and debugging, while batch testing automates test suite execution suitable for CI/CD pipeline integration during Agentforce deployment.

How does iterative fix loop testing work for Agentforce agents?

Iterative fix loop testing provides a comprehensive testing platform that repeatedly executes test suites, identifies failures, and supports debugging workflows to ensure Agentforce agent reliability and performance before deployment.

Can I integrate Agentforce agent testing into my CI/CD pipeline?

Yes, batch testing mode supports automated test suite execution designed for CI/CD pipeline integration, allowing you to validate Agentforce agent reliability and performance before deployment using sf CLI commands.