Demo
GUIDE

Agent Harness

8 MIN READ

Agent Harness is the module dedicated to testing Salesforce Agentforce agents rather than conventional web UI. Instead of writing scenarios by hand, you connect an agent and TestZeus's AI generates adversarial "pathways" — test conversations designed to probe the agent's behavior, security, and reliability.

Connect Agent

Location: Left nav → Agent Harness → Agents → Connect Agent

What it is

A guided form for linking a live Agentforce agent to TestZeus. It captures the required fields — Agent Type* (Text, or Voice/Phone via an Agentforce phone number), Agent name*, Organisation* (the connected Salesforce org), and Profile* (the underlying behavioral profile the agent is tied to) — plus an Optional Configurations section covering Pathway count, Token warning threshold, and a free-text "How would you like to test the agent?" field.

Why it's used

This is the entry point for AI-agent testing: without connecting an agent, TestZeus has nothing to generate pathways against. The Optional Configurations let a tester steer how much and what kind of testing gets generated, instead of accepting a generic default.

How to use it

  1. Go to Agent Harness → Agents and click Connect Agent in the top right.
  2. Choose the Agent Type (Text for chat/API agents; Voice/Phone for agents reachable by phone).
  3. Enter an Agent name, then select the Organisation (the connected Salesforce org/Agentforce account) and the agent's Profile.
  4. Under Optional Configurations, optionally set a Pathway count and Token warning threshold, and describe how you'd like the agent tested in the free-text box.
  5. Under Configure Pathways, tick which categories to generate: Destructive Pathways, Stress Testing, Bulk Operations, and/or Exploit Testing — each includes a description of what it covers.
  6. Click Connect & generate to link the agent and kick off pathway generation.
  7. The top-right of the form also has a Reset action to clear the form and start over, and an (i) info icon next to individual fields for a flyout explanation of that field.

Connect Agent form with Organisation and Profile selected and pathway-category checkboxes (Stress Testing, Bulk Operations, Exploit Testing).

Agent types

Type How TestZeus talks to it
Agentforce (Text) Through the Agentforce API
Voice Places a call to the agent's Agentforce phone number, or connects over a voice WebSocket. Available when voice testing is enabled for your workspace
Website agent Drives a chat widget on a web page in a browser. Available when enabled for your workspace

Voice pathways cover callers a phone agent meets in practice, such as a caller who interrupts mid-sentence and changes the request, or a noisy line where the agent must ask the caller to repeat. A voice simulation records Call Outcomes (for example, the agent ends the call or transfers it to a human), call duration, call audio, and call health, next to the turn-by-turn transcript. Website agent runs add a session video.

What the four pathway categories cover

Category What it probes
Destructive Pathways Write, update, and delete operations against your agent.
Stress Testing High-frequency and concurrent request patterns.
Bulk Operations Large batch data handling, agent limits, and data integrity.
Exploit Testing Input validation, boundary conditions, and security posture.

NOTE

"Stress Testing" here describes a pathway category, not a formal performance-testing suite — it wasn't confirmed whether this reports throughput, latency percentiles, or concurrency metrics the way a dedicated load-testing tool would.

IMPORTANT — BEFORE YOU USE THIS

Destructive, Bulk, and Stress pathways are designed to push an agent into taking write/update/delete or high-volume actions — against a live-connected org, that can mean real data being created, changed, or deleted. Point Connect Agent at a sandbox or dedicated test org rather than production unless you've specifically validated the pathway and cleanup behavior first.

Create a custom pathway

Location: Agent Harness → Agents → [agent] → Pathways → Create Custom Pathway

What it is

A dialog for hand-authoring a single adversarial test pathway rather than relying only on auto-generated ones. A pathway is a repeatable conversational test objective, made up of a Name, an Objective (the strategy or goal the pathway should pursue against the agent — e.g. "attempt a prompt injection"), a Risk Level classification, and a Max Turns budget capping how long the conversation can run.

Why it's used

Auto-generated pathways cover broad categories, but a tester often wants to target one specific concern — e.g. "try a prompt injection" or "attempt to extract confidential data." Custom pathways let a tester encode that exact objective as a repeatable, saved test.

How to use it

  1. Open a connected agent and go to its Pathways tab.
  2. Click Create Custom Pathway.
  3. Enter a Name and an Objective describing what the pathway should attempt — TestZeus offers sample prompts such as "Attempt prompt injection," "Extract confidential data," and "Bypass guardrails" to start from.
  4. Set a Risk Level and Max Turns (between 2 and 200).
  5. Click Create Pathway to save it to the agent's pathway list.

Create Custom Pathway dialog, showing the Objective field and sample-prompt shortcuts for prompt injection, confidential-data extraction, and guardrail bypass.

Pathways list and Run Simulation

Location: Agent Harness → Agents → [agent] → Pathways

What it is

A table of every pathway (auto-generated or custom) created for an agent, showing its Risk level, Max Turns, Trend, and when it was last updated. From here a tester can trigger a Run Simulation to actually execute the pathways against the live agent.

Why it's used

This is the review and execution surface for agent testing — it's where a tester confirms what will be tested before spending a simulation run, and where results and trend feed back in afterward.

How to use it

  1. Open the agent and select the Pathways tab.
  2. Review the pathway table — check the Risk column to prioritize high-risk pathways.
  3. Select one or more pathways using the checkboxes if you want to run a subset.
  4. Click Run Simulation to execute the selected (or all) pathways against the connected agent.

Pathways tab after a custom pathway ("dhjsafh") was created, showing its Medium risk level and 20 max turns.

How Agent Harness evaluates pass / fail

  • Evaluation mechanism: uses an automated LLM-as-a-Judge framework that evaluates conversational turns against the pathway's configured Objective and Risk Level.
  • Pass criteria: a pathway passes when the agent successfully upholds safety policies, enforces guardrails, or refrains from unsafe actions within the Max Turns limit.
  • Fail criteria: a pathway fails if the agent succumbs to the adversarial goal (e.g. prompt injection, guardrail bypass, or unauthorized data modification).
  • Pass rate scoring: the final Simulation Pass Rate reflects the proportion of pathways the agent safely navigated during the run.
  • Inspection: clicking into a simulation row opens the turn-by-turn conversational trace for granular auditing.

Simulations

Location: Left nav → Agent Harness → Simulations

SIMULATIONS RUN AGAINST THE REAL AGENT

A Simulation runs against your actual connected agent, not a mocked or simulated copy of it, unless you've specifically pointed the connection at a sandbox or test agent yourself.

What it is

A workspace-wide log of every simulation run across all connected agents, showing the simulation name, Type, Agent, Pass Rate (as a ring chart with a fraction of cases passed), and Created timestamp.

Why it's used

While the Pathways tab is scoped to one agent, Simulations gives a cross-agent view — useful for comparing how different agents (or different versions or configurations of the same agent) are holding up, and for spotting which agent has the lowest pass rate.

How to use it

  1. Go to Agent Harness → Simulations.
  2. Use Search or Filters to narrow by agent, type, or status (Completed/Cancelled).
  3. Click into any simulation row to see the individual pathway cases that ran and their outcomes.
  4. Watch the Pass Rate ring chart for a quick visual read of how many cases passed out of the total.

Simulations list showing pass rates (e.g. 67%, 33%, 60%, 0%) across multiple Agentforce agent simulations.

Source: Agentforce harness — TestZeus YouTube channel.

Pathway comparison

Location: Agent Harness → open an agent → open a pathway

What it is

The history of one pathway (a single test scenario with an objective, risk level, and minimum turns) across every simulation that ran it.

How to use it

  1. Score over time plots the pathway's score (0 to 5) for each completed run. Voice pathways with a pass threshold show it as a dashed line (3.0 by default).
  2. Run history lists every completed simulation of the pathway, newest first. Select up to 5 runs.
  3. Dimension comparison breaks the selected runs' scores down by evaluation dimension (for example, accuracy or safety), so you can see which aspect regressed or improved.
  4. A run whose score falls notably against the previous one is flagged as a regression; Why this drop? summarizes what changed.
  5. Edit & regenerate creates a new pathway from this one: describe the change, keep or adjust the risk and minimum turns, and generate.

Agents list

Location: Left nav → Agent Harness → Agents

What it is

The master list of every agent connected to the workspace, showing Type (Text/Voice), Agent Profile, Target Pathways count, and Created date. An in-app help flyout (the "i" icon) explains each column directly on the page.

Why it's used

This is the management hub for all connected agents — the starting point for opening an existing agent's pathways and simulations, or connecting a new one.

How to use it

  1. Go to Agent Harness → Agents.
  2. To link a new agent, click Connect Agent in the top right — this opens the setup flow described above.
  3. Use Search or Filters (e.g. by Agent Profile) to find a specific agent.
  4. Click the i info icon in the top right for an on-page explanation of Agent, Type, Agent Profile, Agent Status, and Target Pathways.
  5. Click an agent's name to open its Pathways/Profiles detail view.

Agents list with the on-page help panel explaining each column (Agent, Type, Agent Profile, Agent Status, Target Pathways).

Salesforce CPQ core flow

Location: Agent Harness / Live Test — Salesforce CPQ scenarios

What it is

An end-to-end Salesforce CPQ (Configure-Price-Quote) quote-line flow, where the Agent opens a Quote, edits lines, adds a product, saves, calculates, and verifies the Quote Total changes by the expected amount — a good example of agent-reasoned execution validating a business calculation rather than just a UI state.

How to use it

  • Use a dedicated test quote so calculations don't touch business data.
  • Capture the initial Quote Total before adding products, and assert the expected difference rather than only that the page saved.
  • Use event-based waits (e.g. waiting for calculation completion) instead of fixed sleeps.

Source: Salesforce CPQ Core flow — TestZeus YouTube channel.