
To test Agentforce agents in 2027, run multi-turn conversation tests with personas, score them with custom scorers and a pass threshold, and gate each deployment with the sf agent test run command in CI. Then check what the agent actually did, not only what it said, and keep testing after go-live. Agents are non-deterministic, so track pass rate over many runs instead of trusting a single pass.
Updated December 1, 2026. This post covers what changed for Agentforce testing in 2026 and what to do about it in 2027. If you want the basics first, start with our guide to testing Salesforce Agentforce.
The 5 things at a glance
# | What to get right | Why it matters in 2027 | Where to start |
1 | Test whole conversations, not single replies | Testing Center now runs multi-turn tests with personas | Conversation tests scored on task resolution |
2 | Score answers that vary between runs | Agents are non-deterministic, so one pass proves little | Custom scorers with a pass threshold, tracked as pass rate |
3 | Check what the agent did, not only what it said | A correct-sounding reply can hide a wrong action or data leak | Verify actions and records, and run as real user profiles |
4 | Make agent tests a release gate | Agent changes ship through the same pipeline as code | sf agent test run in CI with JUnit output |
5 | Keep testing after go-live | Prompts, data, models and releases change behavior without a deploy | Scheduled reruns plus Agent Health Monitoring |
What changed for Agentforce testing after Dreamforce 2026?
Salesforce now ships much more of the agent testing toolkit itself. Here is what changed in 2026, in order.
Testing Center moved into Agentforce Studio. In April 2026 Salesforce moved testing out of Setup and into Agentforce Studio, next to Agent Builder and Observability, and added run history so you can compare past results. (Salesforce) Salesforce listed the new Testing Center as GA in May (TDX 2026 roundup), while the help page still labels the Studio version as beta.
Conversation-level tests with personas. Testing Center can simulate full multi-turn conversations with built-in personas such as a frustrated customer, a non-native English speaker and a distracted user, and score them on task resolution. (Salesforce)
Custom scorers with a pass threshold. You can write a scorer in natural language, for example politeness on a 0 to 5 scale, and set a pass/fail threshold. (developer docs)
Dreamforce 2026 (September 28). Salesforce announced Voice and Conversation Testing (beta), Custom Scorers (API GA, UI beta), Agent Optimizer (GA in October), A/B Experimentation (beta in October) and Agent Health Monitoring (GA, with 16+ metrics and alerts). (Dreamforce 2026 announcements)
Testing Center runs are unmetered. Salesforce’s considerations page says testing does not consume Einstein Requests or Flex Credits as of Summer ‘26, though Data 360 queries run from Testing Center are still metered. Some older Salesforce pages still say tests consume credits, so check your own org’s usage. (Salesforce Help)
The 5 things to keep in mind when testing Agentforce in 2027
1. How do you test a whole conversation, not just one reply?
A single-utterance test checks whether the agent picked the right subagent and action for one message. Real users do not talk like that. They change their mind, give half an answer, or ask two things at once. In 2027, your core suite should be conversation tests with personas, scored on whether the task was resolved.
Keep single-utterance tests for routing. In the Testing Center CSV template the columns are Utterance, Expected Subagent, Expected Actions and Expected Response, and the subagent column takes the API name, not the label. (Trailhead) To size how many cases you need per subagent and action, use our free Agentforce Testing Center coverage planner.
2. How do you score answers that vary from run to run?
Salesforce says it plainly: AI agents are non-deterministic, so you need to test them across a wide range of scenarios. (Salesforce Help) One green run does not mean the agent is ready.
Write custom scorers for what your business cares about: policy, tone, accuracy, escalation.
Set a pass threshold for each scorer instead of reading answers by eye.
Run your critical cases several times and track the pass rate, not a single result.
Watch the trend. A pass rate that drops after a prompt, knowledge or model change is your regression signal.
3. How do you check what the agent actually did?
A good reply can hide a bad action. The agent can say a case was updated when nothing changed, or it can show data the user should never see. Check the actions and records behind each reply: which actions ran, which records changed, and whether the user’s permissions allowed it.
Run these tests as the real user profiles that will use the agent, not as an admin. Admin users see everything, so admin-only tests hide permission bugs. We cover this in why multi-user testing beats admin bias. Salesforce also recommends running Testing Center only in a sandbox, because tests can modify CRM data. (Salesforce Help)
4. How do you make agent tests a release gate?
Agent changes should go through the same pipeline as code. The sf agent test run command runs a test suite from the Salesforce CLI and is built for headless CI, with a wait option and JSON, TAP or JUnit output. (developer docs) Salesforce describes using it with DevOps Testing Center as a quality gate that blocks agent deployments until a suite passes. (Salesforce)
Put the agent suite next to your normal regression suite, with clear exit criteria. Our Salesforce test strategy for 2027 shows where agent tests sit in each project phase.
5. How do you keep testing after go-live?
Agents change without a code deploy. A new knowledge article, a data change, a prompt edit or a model update can all shift behavior. Salesforce also ships three major releases a year. (Salesforce)
Rerun your conversation suite on a schedule and after every Salesforce release.
Use Agent Health Monitoring for production metrics and alerts.
Use A/B Experimentation and Agent Optimizer to compare agent versions before you switch all traffic.
Keep a short go-live checklist for every agent change. Ours is here: Agentforce go-live testing checklist.
Where does TestZeus fit?
Testing Center is the right place to start, and it now covers more than it did a year ago. TestZeus Agent Harness adds an adversarial layer on top. It runs adversarial multi-turn conversations against your agent, intercepts tool calls and SOQL to verify what the agent did, and runs as real user profiles (run-as). It scores each run, recommends guardrail fixes, and a token budget caps Flex Credit spend.
Read our comparison of Testing Center and Agent Harness, or see how it works on the Agentforce testing page. If you are also choosing a tool for the rest of your Salesforce testing, see the best Salesforce testing tools in 2027.
FAQ
What is Agentforce Testing Center?
It is Salesforce’s built-in tool for testing Agentforce agents. Since 2026 it lives in Agentforce Studio and supports single-utterance tests, multi-turn conversation tests with personas, custom scorers and run history.
Does Agentforce testing use Flex Credits?
Salesforce’s considerations page says Testing Center runs are unmetered as of Summer ‘26, except Data 360 queries. Other Salesforce pages still say tests consume credits, so confirm in your org before you run large suites.
Can I run Agentforce tests in CI/CD?
Yes. Use sf agent test run from the Salesforce CLI with JUnit output, and fail the pipeline when the suite does not pass.
How often should I retest an Agentforce agent?
On every agent change, on a regular schedule in production, and after each of Salesforce’s three major releases a year.
// Start testing //








