Demo
GUIDE

Test Toolkit

8 MIN READ

Test Toolkit holds the shared building blocks that individual tests reference: reusable Test Data, Environments, Hypermind Code Blocks, Integrations, and Authentications.

Test Data

Location: Left nav → Test Toolkit → Test Data

What it is

Named, reusable key/value datasets tests can attach to themselves. Creating one ("Create Test Data") asks for a Name, an optional set of Key/Value rows (with a Secret checkbox per row to mask sensitive values like passwords), optional Agent Guidelines, Tags, and file Attachments (documents, data files, images, or videos).

Why it's used

Centralizing data means the same login credentials, record values, or search terms can be reused across many tests and updated in one place — and secrets stay masked in the UI rather than sitting in plain Gherkin text.

How to use it

  1. Go to Test Toolkit → Test Data and click the create action.
  2. Enter a Name (lowercase letters, numbers, and underscores only; must start with a letter).
  3. Add Key/Value rows under Data Content; tick Secret for any value that should be masked (e.g. a password).
  4. Optionally expand Agent Guidelines to give the AI extra context on how to use this data.
  5. Add Tags, and drag in any file Attachments needed (.txt/.doc/.docx/.pdf, .json/.csv/.xls/.xlsx/.xlsm, images, or videos).
  6. Click Add Test Data to save.

Create Test Data form with Key/Value rows, a Secret checkbox, Agent Guidelines, Tags, and a drag-and-drop Attachments zone.

Attaching a saved dataset to a test is covered in Test Management.

Environments

Location: Left nav → Test Toolkit → Environments

What it is

Named targets that define where a test actually runs — which URL/org, which Device Type (Browser, or a real/virtual mobile device for Android/iOS), and which Tags and connections it can access. The list shows every saved environment with its Device Type, Tags, Modified By, and Last Updated.

Why it's used

Separating "what to test" (the Gherkin) from "where to test it" (the Environment) is what allows the same test or suite to be pointed at, say, a staging org one day and a production-like org the next, without any change to the test itself.

How to use it

  1. Go to Test Toolkit → Environments.
  2. Click + New Environment to define a new one, or open an existing row to edit it.
  3. Set the Device Type (Browser, or mobile) and any connection details the environment needs.
  4. Add Tags to make the environment easy to find and filter later.
  5. Reference this environment from a test's Configuration panel, or pick it when running a Test Suite.

Environments list with the on-page help panel explaining Environment, Device Type, Tags, Modified By, and Last Updated.

Source: Environments, connections and metadata based tests — TestZeus YouTube channel.

Hypermind Code Blocks

Location: Left nav → Test Toolkit → Hypermind Code Blocks

What it is

A library of reusable custom scripts and assets ("Code Blocks") that a test can call when it needs behavior beyond what plain Gherkin steps cover, listed with Tags and Last Updated, and created via Create new code block.

Why it's used

Some validations or setup steps are easier to express as a small script than as natural-language Gherkin (e.g. a complex data transformation or a custom wait condition). Code Blocks let advanced users extend TestZeus without abandoning the Gherkin-first workflow for the rest of the test.

How to use it

  1. Go to Test Toolkit → Hypermind Code Blocks.
  2. Click + Create new code block to author a new reusable script, or open an existing one to edit it.
  3. Add descriptive Tags so the block is easy to find later.
  4. Reference the code block from a test's Configuration panel (the "Code Blocks" section) when a scenario needs it.

Hypermind Code Blocks library, showing reusable scripts tagged "Teaching based" and their last-modified authors.

Execution and security guidelines

  • Runtime environment: executes custom automation logic in a sandboxed runtime alongside standard test steps.
  • Data and secrets access: code blocks inherit context from attached Test Data and environment variables, keeping sensitive credentials encrypted.
  • Error handling: script failures or unhandled exceptions inside a code block flag the step outcome and surface execution logs directly in Run Details.

Source: TestZeus Test Importer — TestZeus YouTube channel.

Integrations

Location: Left nav → Test Toolkit → Integrations

What it is

A Connections tab listing every external tool linked to TestZeus (Gmail, Salesforce, Salesforce Agentforce) with a Status (Active, Draft, Inactive), who connected it, and when it was last updated; plus a separate Knowledge Base tab. A + Connect action starts linking a new integration.

Why it's used

TestZeus needs authorized connections to the real systems under test (e.g. a Salesforce Agentforce org) and to auxiliary tools (e.g. Gmail, for tests that need to check an inbox) — Integrations is where those connections are created and monitored.

How to use it

  1. Go to Test Toolkit → Integrations.
  2. Click + Connect and choose the integration or tool to link (e.g. Salesforce, Salesforce Agentforce, Gmail, Jira, GitHub, knowledge-base sources).
  3. Complete that tool's authorization flow to create the Connection.
  4. Check the Status column afterward — Active means it's ready to use; Inactive/Expired/Failed mean it needs re-authorization.
  5. Reference the connection from Agent Harness (for Salesforce Agentforce agents), from tests that need that integration, or from Magic Test / Jira generation and codebase generation flows.

The Knowledge Base tab under Integrations holds reference material tests can attach in the editor Configuration panel (see Test Management → Configuration).

Integrations → Connections tab listing Gmail and multiple Salesforce/Salesforce Agentforce connections with their Active/Draft status.

Permissions and enterprise management

  • Workspace scoping: connections authorized under Integrations are shared across the workspace tenant, allowing multiple Environments to reference a single active connection.
  • OAuth and token lifecycles: integration tokens handle session refreshes automatically; if an authorization expires or fails, the connection status switches to Inactive or Failed.
  • Impact on tests: tests attempting to run against an inactive connection will fail early at the environment initialization step with clear dependency alerts.
  • Production guidance: always verify requested OAuth scopes and permission sets in dedicated sandbox environments prior to authorizing production Salesforce orgs.

Source: Environments, connections and metadata based tests — TestZeus YouTube channel.

Authentications

Location: Left nav → Test Toolkit → Authentications

What it is

Named sign-in configurations the agent uses to get into the application under test, so tests never carry a username, password, or MFA secret in their text. The page has two tabs: MFA providers and Login flows.

Why it's used

Centralizes how tests log in. A test references a saved Authentication by name, and MFA challenges are answered the same way everywhere that name is used. When a password or authenticator changes, you update one entry instead of every test.

MFA providers

An MFA provider answers a multi-factor challenge during a run.

Type What you provide How it answers
TOTP The authenticator secret (the value behind the QR code) and the app's login URL Replays the current time-based code
Passkey The app's URL; TestZeus opens an interactive browser where you sign in and create the passkey Signs in with the captured passkey. Enrollment runs in Chromium; tests on Firefox and WebKit can still use it
Email A connected Gmail or Outlook mailbox, plus a sender filter, a subject filter, or both Reads the code from the newest matching email

The Email type needs a mailbox connection under Integrations first, and appears only where login flows are enabled.

  1. Go to Test Toolkit → Authentications → MFA providers and select Add MFA provider.
  2. Choose TOTP, Passkey, or Email and fill in the fields above.
  3. Save. TOTP and Email providers are Active at once; a passkey becomes Active when enrollment finishes, or Failed if it does not.

Login flows

A login flow is a recorded sign-in for one test user. You log in once in a remote browser; TestZeus saves the steps, the username, and the password (encrypted, never shown again) so tests can sign in as that user by name. Login flows appear when they are enabled for your tenant.

  1. Go to Login flows → New login flow and give it a name. Names use letters, digits, spaces, and _ - . @ ( ), because tests reference the exact name.
  2. Enter the Login page URL and select Open browser & record.
  3. In the browser, sign in as a dedicated test user. If the app asks for an MFA code, the linked MFA provider answers it, or use Paste OTP to type the provider's current code.
  4. Recording ends when the app's first page after login loads. Select Use this recording.
  5. Optional: record the logout as well (log out with the app's own menu and stop on the signed-out page), or select Finish without logout.

On the login flow's page you can:

  • change only the Credentials when the username or password changes (the recorded steps stay);
  • Re-record when the login page or its steps change;
  • link or change the MFA provider;
  • switch the flow between Active and Inactive (runs refuse an inactive flow);
  • run Check login to try the sign-in now. After a failed attempt it asks first, because submitting the saved password again could lock the account.

The list shows each flow's Status (Active, Inactive, Draft, or Failed), Username, MFA provider, and Last login (how the most recent sign-in went, with its time in UTC and the reason).

Use an authentication in a test

  • Gherkin: Given Log in as "Sales Rep" signs in with the login flow named Sales Rep.
  • Test Blocks: tz.auth.login("Sales Rep") in step code, and tz.auth.logout() to replay the recorded logout. See the Step code and tz helpers.
  • Environments: link an MFA provider to an Environment so every test on it can answer MFA.

Authentications list showing two active credentials: a Passkey entry and a TOTP entry.