---
schema_version: "1"
id: e302424765df55cb275d73d0b7b8cbc19aaec6d884981103bf298c1e15dbc671
title: Set Up and Run Tests in Setup (Legacy)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_testing_center_setup_tests.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_testing_center_setup_tests.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 88af44407a0dbb2952915b005322b985812c29f4776424142b2a142bf2cd1608
description: Efficiently validate your agent’s performance at scale, whether you want to fast-track testing with AI-generated scenarios or manually craft and upload your own. You can generate realistic test cases for specific subagents and actions, or data linked through the Agentforce Data Library.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Set Up and Run Tests in Setup (Legacy)

Efficiently validate your agent’s performance at scale, whether you want to fast-track testing with AI-generated scenarios or manually craft and upload your own. You can generate realistic test cases for specific subagents and actions, or data linked through the Agentforce Data Library.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <tbody>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;"><a name="agent_testing_center_setup_tests__image_ewv_dvs_c3c"><!-- --></a>
            <div><img id="agent_testing_center_setup_tests__image_ewv_dvs_c3c" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/resources/images/checkmark.png" alt="green checkmark"></div>
            <p style="margin-bottom:0;"><strong>This article applies to:</strong></p>
          </td>

          <td class="slds-cell-wrap" style="vertical-align:top;">Legacy Agentforce Testing Center in Setup</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;"><a name="agent_testing_center_setup_tests__image_qxv_cvs_c3c"><!-- --></a>
            <div><img id="agent_testing_center_setup_tests__image_qxv_cvs_c3c" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/resources/images/crossmark.png" alt="red crossmark"></div>
            <p style="margin-bottom:0;"><strong>This article doesn’t apply to:</strong></p>
          </td>

          <td class="slds-cell-wrap" style="vertical-align:top;">New Testing Center in Agentforce Studio (Beta)</td>

        </tr>
      </tbody>
    </table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions. <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;release=264.0.0&amp;type=5" title="Learn about agent types and default templates for specific clouds and common use cases.">Required add-on licenses vary by agent type.</a></td></tr></tbody></table>

Start by selecting the agent you want to test and configuring key conditions like conversation history and context variables to match your real-world use case. Then, choose your test data: generate scenarios to validate the agent’s selection of subagents and actions, generate question-and-answer style test cases based on the knowledge content available to the agent, or upload your own test cases in a CSV file for full control. Then, select the evaluations that best measure your agent’s performance ranging from basic response accuracy to deeper quality metrics like coherence, completeness, and instruction adherence. You can run tests immediately or download the cases for review and refinement before execution.

1. **[Create a Test](https://help.salesforce.com/s/articleView?id=ai.agent_testing_center_create.htm&release=264.0.0&type=5)**  
    Fast-track your testing with AI generated testing scenarios or create and upload your own. Test your agents against ‌subagents and actions or data available in Agentforce Data Library.
2. **[Define Test Conditions](https://help.salesforce.com/s/articleView?id=ai.agent_testing_center_test_conditions.htm&release=264.0.0&type=5)**  
    When you upload test cases from the CSV template, defining test conditions such as conversation history and context variables helps provide additional context. These variables help simulate more realistic user interactions, making your tests more reliable and reflective of actual agent behavior.
3. **[Add Test Data](https://help.salesforce.com/s/articleView?id=ai.agent_testing_center_add_data.htm&release=264.0.0&type=5)**  
    Add test cases to evaluate your agent’s performance by either generating them with AI or uploading your own scenarios. AI-generated test cases offer two data options: generating based on subagents and actions, or generating from knowledge available to the agent via the Agentforce Data Library.
4. **[Choose Evaluations](https://help.salesforce.com/s/articleView?id=ai.agent_testing_center_evaluations.htm&release=264.0.0&type=5)**  
    Evaluations measure your AI agent’s performance across key areas. Default evaluations include response accuracy, subagent assertion, and action assertion. To better match your testing goals, you can add quality-focused evaluations like completeness, coherence, conciseness, latency, and instruction adherence. Selecting the right mix of evaluations gives you the insights you need to strategically refine and improve your agent.

#### See Also

- [_Trailhead_: Agentforce Testing Tools and Strategies](https://trailhead.salesforce.com/en/content/learn/modules/agentforce-testing-tools-and-strategies)
- [_Trailhead_: Agentforce Testing Center](https://trailhead.salesforce.com/en/content/learn/modules/agentforce-agent-testing)