02Chapter 2: What you are testing: topics, actions, and instructionsThis chapter assumes you know how to open Agent Builder and that you have seen an Agentforce agent respond in the preview panel. You do not need to have written a test yet. The goal is to name the parts of an agent that a test can check, so that later chapters on test cases make sense.3 min read
03Chapter 3: What the Testing Center doesThis chapter assumes you know what an Agentforce agent, a topic, and an action are. It also assumes you have an org with Agentforce and the Testing Center enabled. You do not need to write tests yet.2 min read
04Chapter 4: Anatomy of a test caseThis chapter assumes you know what Agentforce topics and actions are, and that you can read basic YAML. It covers the parts of a single test case and what each part checks.2 min read
05Chapter 5: Asserting the expected topicThis chapter assumes you know what an Agentforce agent is, how topics and actions fit together, and how a test case is laid out (an utterance plus expectations). Here you learn how to assert the expected topic and how to fix the errors that come up most often.2 min read
06Chapter 6: Asserting the expected actionsThis chapter assumes you know what Agentforce topics and actions are, and that you have read the previous chapters on the anatomy of a test case and on asserting the expected topic. You should be able to open an agent in your org and find the names of its actions.2 min read
07Chapter 7: Writing the expected outcomeThis chapter covers the third assertion in a test case: the expected outcome. It assumes you know how a test case is built from an utterance, an expected topic, and expected actions. It also assumes you can read a basic YAML file.3 min read
08Chapter 8: Designing a test set: main paths, edge cases, and out-of-scope requestsThis chapter assumes you know how a test case is built from an utterance, an expected topic, expected actions, and an expected outcome. It also assumes you know your agent's topics and actions. Here you decide which cases to write, so the suite finds real problems and doesn't only confirm what you a2 min read
09Chapter 9: Creating a test suite in the Testing CenterThis chapter assumes you know what Agentforce topics and actions are. It also assumes you can open Setup in an org where Agentforce and the Testing Center are enabled. You will build a small suite in the UI and learn where people usually go wrong.3 min read
10Chapter 10: Defining tests in a YAML spec or CSV fileThis chapter assumes you know what a test case contains (an utterance, an expected topic, expected actions, and an expected outcome). It also assumes you can read YAML and use a command line. You will see how to write the same test cases as a file instead of clicking them into the UI.2 min read
11Chapter 11: Running a test suiteThis chapter covers how to run a test suite once it exists, in the UI and with Salesforce CLI. It assumes you know what topics and actions are in an Agentforce agent, that the Testing Center is enabled in your org, and that you have a suite saved. If you have no suite yet, create one first using the2 min read
12Chapter 12: Reading test resultsThis chapter assumes you have already written a test suite with expected topics, actions, and outcomes, and started a run. It covers what the results show and how to read them.2 min read
13Chapter 13: Diagnosing a failing testThis chapter assumes you can write a test case with an utterance, expected topic, expected actions, and expected outcome. It also assumes you can run a suite and open the per-case results. A failing test does not always mean a broken agent. The test, the agent configuration, or the model's wording c2 min read
14Chapter 14: Creating and running tests with Salesforce CLIThe Testing Center UI is fine for a first suite. Salesforce CLI lets you keep tests in source control, review changes in pull requests, and run them from a terminal or a script. This chapter covers the commands for that workflow.2 min read
15Chapter 15: Nondeterministic responses and common pitfallsThis chapter assumes you can write a test case with an utterance, expected topic, expected actions, and expected outcome. It also assumes you can run a suite and read per-case results. Here you learn why the same test can pass on one run and fail on the next, and how to avoid the mistakes that cause3 min read
16Chapter 16: Keeping tests as a regression suite and automating runsThis chapter assumes you can write a test spec, create it with sf agent test create, and run it with sf agent test run. It covers how to keep the suite useful as the agent changes and how to run it automatically.2 min read