---
schema_version: "1"
id: 6adc840cb1b488c191c0b6edd0ad33246298b81733b15633e731ebc6b28b3662
title: Generate Tests from Subagents and Actions
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_testing_center_topics_actions.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_testing_center_topics_actions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9aae0b4c81baeae99d46e86ea367f59e6ffb83596755f78d9526039948bb5c0f
description: Evaluate how well your agent handles key subagents and actions before launch. Generate relevant, test-ready utterances using your subagent and action metadata as well as information from connected data libraries. Simply choose the subagents you want to test, define the test focus with a brief description, and let the system generate up to 100 test cases.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Generate Tests from Subagents and Actions

Evaluate how well your agent handles key subagents and actions before launch. Generate relevant, test-ready utterances using your subagent and action metadata as well as information from connected data libraries. Simply choose the subagents you want to test, define the test focus with a brief description, and let the system generate up to 100 test cases.

### 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_topics_actions__image_ewv_dvs_c3c"><!-- --></a>
              <div><img id="agent_testing_center_topics_actions__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_topics_actions__image_qxv_cvs_c3c"><!-- --></a>
              <div><img id="agent_testing_center_topics_actions__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>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d71148e123">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d71148e123 ">To create tests in the Testing Center:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d71148e123 ">Manage AI Agents AND <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;type=5&amp;language=en_US" target="_blank">the required permissions for your agent
                type</a></td>

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

1. To create test cases from subagents and actions, select **Generate test cases based on subagents and actions**.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)
    
    Note Test cases are drafted in the Agentforce Agent's default language. For supported languages, see [Considerations for Testing Center](https://help.salesforce.com/s/articleView?id=ai.agent_testing_center_considerations.htm&type=5&language=en_US).
2. Specify how many test cases you want to generate. You can generate up to 100 test cases at a time.
3. Enter a description to help guide the AI model about the purpose and scope of your testing.
    
    **How does the test description influence my tests?**
    
    The test description is included in the prompt and guides how your test cases are generated by defining the test focus or theme. Keywords and phrases in the description help narrow the information that tests are built around, which is especially useful when your agent is linked to multiple sources like articles or PDFs.
    
    While you can’t customize the format or complexity of tests in the description, you can help define the test focus by using relevant terms and phrases. Although perfect grammar isn’t required, using complete sentences to write out the description helps both AI and human reviewers understand your intent and improves the output's relevance.
    
    The description is for focus and scope, not configuration. Don't include a test case count, a specific subagent name, or instructions that restate the task like "generate test cases" or "test the agent."
4. Select the subagents you want to test. Click **Next**.
    
    **Which subagents and actions should I choose?**
    
    Agentforce Testing Center identifies the subagents and actions accessible to the agent you're testing and uses this information to create targeted test cases. Test utterances are then drafted based on the subagent and action instructions, aiming to trigger the agents to select them. When these utterances are sent to your agent, we confirm that the agent correctly selected the intended subagent and action.
    
    To assess your agent's overall effectiveness, generate test cases across all available subagents. This comprehensive approach provides a broad understanding of your agent's performance, so you can pinpoint areas of weakness and prioritize further, more targeted testing. By identifying and addressing these pain points early, you can significantly improve your agent's accuracy before deployment.
    
    Alternatively, if you've modified a specific subagent or action, select those subagents to validate the changes and ensure correct behavior. For example, if you've updated the "Refund Request" subagent, you can isolate tests to only that subagent to ensure the changes function as intended, saving time and increasing confidence in your agent's performance.
    
    You can also choose to select a cluster of subagents related to a specific business area. For instance, you might select a group of subagents related to Order Management, like Order Status, Cancel Order, Modify Order, to comprehensively test how your agent handles a customer's end-to-end order-related queries, ensuring a seamless and accurate experience across all touchpoints.

#### See Also

- [Configure Your Agent](https://help.salesforce.com/s/articleView?id=ai.agent_parent_configure.htm&release=264.0.0&type=5 "Customize your agent so that it fits your company’s use cases. Learn how to use Agentforce Builder and agent assets, including subagents, actions, filters, and variables, so that you can customize out-of-the-box solutions or create your own.")