Introduction
Agentforce Testing Center is a Salesforce sandbox environment tool used to test, evaluate, and monitor AI agents built with Agentforce before deploying them to production. It helps ensure that autonomous AI agents behave correctly, respond accurately, and follow the intended business logic.
Gearset pipelines can now integrate with your Salesforce Testing Center and we can automatically trigger test runs if we identify that your PR contains any changes related to Agentforce metadata types.
How to enable Agentforce Testing Center integration?
Note: Currently, Testing Center integrates only with Gearset Pipelines. Deployments made through Compare and Deploy do not trigger Testing Center tests.
To run Agentforce Testing Center tests, enable Run Testing Center tests option in the Tests section of the CI job settings. There is currently no option to select individual tests, so all tests defined in Salesforce will be run.
Agentforce Testing Center tests run automatically after a successful deployment to an environment. Once the required metadata exists in the org, the test suites execute and their results are surfaced on the pull request targeting the next environment downstream in the pipeline.
For example:
When you open a PR from
INT → UAT, that PR displays the results of the tests that ran inINT. If they failed, you’ll see a warning — giving you the opportunity to review the failure before deciding whether to promote the change inUAT.If you promote the change, it deploys to
UATand the tests run there. Those results then appear on the subsequent PR fromUAT → Production.
The intent is to give you early signal about test failures before a change moves further down the pipeline.
You can view detailed test results by clicking View Results in the AgentforceTestingCenter section.
Alternatively, you will also see the status for Agentforce Testing Center on the UAT environment as shown below.
To see more details on the test results, click the status (Failed in my example) and then Results.
The Results page displays an overview of the test suite and utterance and whether the Topic, Action, and Response passed.
If Agentforce tests fail, promotion of the pull request is blocked until the issue is resolved or dismissed.
Currently, there is no immediate way to refresh or rerun failed tests directly from Gearset. Tests must be rerun manually in Salesforce.






