Agentforce Testing Center - 代理测试中心(练习操作步骤)

《Agentforce Testing Center - 代理测试中心》的分步练习操作指南。...

📅 2026/10/2 ✍️ ponybai 🏷️ agentforce, testing

本文是《Agentforce Testing Center - 代理测试中心》的练习操作步骤。阅读原文请见:Agentforce Testing Center - 代理测试中心。

1. Sign Up for a Developer Edition Org

  1. Sign up for a free [Developer Edition org with Agentforce Testing Center](https://trailhead.salesforce.com/promo/orgs/agentforce-with-testing-center-for-trailhead).
    • Email: enter an active email address.
    • Username: enter a unique username that looks like an email address (for example, yourname@example.com).
    • Click Sign me up.
    • Open the activation email and click Verify Account.
    • Set your password and challenge question.
  2. Connect the org to Trailhead:
    • In the Challenge section, click the org name and click Connect Org.
    • Enter the username and password for the Developer Edition.
    • On the Allow Access? screen, click Allow.
    • On the connect-for-hands-on-challenges screen, click Yes! Save it.

2. Turn On Agentforce

  1. Click the Setup icon, then click Setup.
  2. In the Quick Find box, search for and select Einstein Setup.
  3. Verify Einstein is turned On. If it is already On, turn it Off and then back On again.
  4. Refresh your browser.
  5. In the Setup Quick Find, search for and select Salesforce Go.
  6. In the Search features... textbox, enter and select Agentforce (Default).
  7. Click Get Started.
  8. Click Turn On.
  9. Click Confirm.

3. Get the Testing Template

  1. From Setup, in the Quick Find box, search for and select Testing Center.
  2. Click New Test.
  3. For Test Name, enter template.
  4. Select Einstein Copilot - v1 or Agentforce (Default) - v1 for the agent to test.
  5. Click Next, then click Next.
  6. Click the Upload Test Cases tab.
  7. Click the Template link to download the testing_template.csv file.
  8. Close the New Test without saving.
  9. Open the file in a text editor to review the comma-separated values (Utterance, Expected Subagent, Expected Actions, Expected Response).

4. Run Your Tests

  1. From Setup, in the Quick Find box, search for and select Testing Center.
  2. Select New Test.
  3. For Test Name, enter Test Agentforce v1.
  4. Select Einstein Copilot - 1 or Agentforce (Default) - 1.
  5. For Description, enter Test cases for Agentforce to verify account summaries and details.
  6. Click Next.
  7. Skip Test Conditions (Context Variables) and click Next.
  8. Click the Upload Test Cases tab.
  9. Click Upload Files and select the testing_template.csv file.
  10. Click Done, then Next, then Save.

5. Generate Tests with AI (Batch Testing)

  1. From the App Launcher, search for and select Agentforce Studio.
  2. Click Tests.
  3. Click New Suite.
  4. For Test Name, enter Generated Test Agentforce v1.
  5. Select Einstein Copilot - 1 or Agentforce (Default) - 1.
  6. For Description, enter Test cases for Agentforce to verify account summaries and details.
  7. Click Next, then Next.
  8. Select Generate Test Cases.
  9. For Number of test cases, leave it at 20.
  10. For Test Case Description, enter Generate realistic inquiries that customers might ask about their user account, orders, and other general questions about products.
  11. For Generate Test Cases From, select Subagents and Actions assigned to the agent.
  12. Click Next.
  13. Click Generate Test Cases and wait (refresh the browser if needed).
  14. Click Run Test.

6. View Test Results

  1. From the App Launcher, search for and select Agentforce Studio.
  2. Click Tests.
  3. Select the Test Suite Generated Test Agentforce v1.
  4. Click Run history.
  5. Select the Start Time for the test suite you just ran.
  6. Review the Subagent Evaluation Pass %, Action Evaluation Pass %, and Response Evaluation Pass %.
  7. Review the Test Results table (Utterance, Expected vs Actual Subagent/Actions/Response, and Pass/Fail evaluations).

7. Troubleshoot with Agentforce Builder

  1. From Setup, in the Quick Find box, search for and select Agentforce Agents.
  2. Select the dropdown for the agent and select Open in Builder.
  3. In the Conversation Preview, enter the utterance Please update the email address for Ilsa Galgey to new_email@example.com. and click Enter.
  4. If the agent asks to confirm, click Confirm or enter Yes.
  5. Review the results (Session Started, User Prompt, Subagent Selected, Action Launched).