Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Agentforce and Einstein Generative AI
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Define Test Conditions

          Define Test Conditions

          When you upload test cases from the CSV template, defining test conditions such as conversation history and context variables helps provide context. These variables help simulate more realistic user interactions, making your tests more reliable and reflective of actual agent behavior.

          Required Editions

          green checkmark

          This article applies to:

          New Testing Center in Agentforce Studio (Beta)
          red crossmark

          This article doesn’t apply to:

          Legacy Agentforce Testing Center in Setup
          Available in: Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions. Required add-on licenses vary by agent type.
          User Permissions Needed
          To create tests in the Testing Center:

          Manage Agentforce Grids

          AND

          Manage Agentforce Testing

          Important
          Important Conversation history and context variables appear only as columns in the downloadable CSV template and aren't factored into generated test cases.
          1. To add a conversation history to your tests, select Include conversation history. A column is added for the conversation to your CSV template, where you can add the utterances that you want to test.
          2. To test your agent against specific scenarios or related data, select Include context variables and then select the fields you want to include. Context variables map to fields on objects associated with the agent and add details to your test cases that help simulate realistic conversations. For example, for SDR agent tests, you can include variables like Lead Name to generate test utterances with contextual details like customer name and company name. A column is added with these variables to your CSV template.
          3. Click Next.
           
          Loading
          Salesforce Help | Article