Platform: Global variables
Overview
Use this page to create, edit, and remove the global variables that every agent can read while a test is running. A global variable is a named key-value pair, for example MAX_SESSIONS set to 150, that lets you share a configuration value, counter, or piece of dynamic data across multiple workloads without hardcoding it into each one separately.
Global variables sit above individual load profiles and workloads in the platform's configuration: you define a variable here once, then reference its name from the workloads configured in Load profiles, and the agent assigned to a test reads the current value from this page at execution time. Because the value can be changed here without editing every workload, operators use this page to retune shared parameters between test runs.
On this page you can view the full list of defined variables with their current values, search the list by name, add a new variable, edit an existing variable's name or value, delete a single variable, or clear the entire list at once.
Key concepts
- global variable - A named key-value pair that every agent can read while a test is running, used to share a configuration value, counter, or piece of dynamic data across workloads without hardcoding it in each one. (related: Load Testing: Load profiles)
- agent - The LoadGen process that executes test workloads and reads global variables at runtime. (related: Agents & Capacity: Agents setup)
- workload - A unit of test logic, such as a script or flow, that runs on an agent during a test and can reference a global variable by name. (related: Load Testing: Load profiles)
When to use it
- Before running a test that needs a value shared across several workloads, such as a session count or target host, so you don't hardcode it in each one.
- When you need to retune a shared test parameter, such as a counter or limit, without editing every workload that uses it.
- When troubleshooting a test run where a workload references a variable that doesn't resolve, to confirm the exact name and value defined.
- When removing or clearing variables left over from a decommissioned test configuration.
- When auditing which global variables currently exist before changing a load profile that depends on them.
Before you begin
- Decide on a unique variable name and the value it should hold; LoadGen rejects a name already in use by another variable.
- Know which workloads will reference the variable, configured on Load Testing: Load profiles, so you use a name they expect.
- Have permission to view and edit platform configuration; without it, the page denies access instead of showing the list.
Common workflows
Add a new global variable
Persona: Load test operator preparing a shared parameter before a run
- Select Add variable.
- Expect: A dialog opens with fields for the variable's name and value.
- Enter a unique name and the value you want agents to read, then save the dialog.
- Expect: The dialog closes and the new variable appears as a row in the table; the count badge and the 'Showing X of X variables' line increase by one.
Verify: The new variable's name and value are listed in the table, and any workload that references that name can read the value the next time a test runs.
Update or remove an existing variable
Persona: Platform admin retuning or cleaning up shared test parameters
- Select the pencil Edit icon on the variable's row.
- Expect: A dialog opens pre-filled with that variable's current name and value.
- Change the value and save, or instead select the trash Delete icon on the row.
- Expect: If you saved an edit, the VALUE column updates in place; if you deleted it, the row disappears from the table and the count badge decreases by one.
Verify: The table reflects either the updated value in the VALUE column or the row's absence, and the 'Showing X of X variables' count matches the current total.
Steps
Step 1
Open the Global variables page.
Expected result: The page loads showing the current list of variables, here a single entry, MAX_SESSIONS valued 150, along with the Search variable... box, Clear All, Add variable, and Refresh controls, and the 'Showing 1 of 1 variables' count at the bottom.
Reviewing the existing variables first lets you confirm what's already defined before you add, edit, or remove one.
- The count badge next to the page title (1) and the 'Showing 1 of 1 variables' line both reflect the number of rows in the table.
- The info banner explains that variables defined here are accessible by all agents during test execution.
Field reference
| Field | Purpose | Format / Validation | Required | Default |
|---|---|---|---|---|
| Search variable... | Filters the table to variable names containing the typed text, letting you find a specific variable quickly in a long list. | free text | No | - |
| Variable name | The unique key that workloads reference to look up this variable's value during test execution; choose a name your workload scripts already expect, since it cannot be changed to match a name already in use. | text, unique | Yes | - |
| Value | The data stored under the variable name and read by agents at test execution; set it to whatever your workload expects, since LoadGen stores it as entered without fixing it to a type. | free text | - | - |
Column reference
| Column | What it shows | How to read it |
|---|---|---|
| VARIABLE NAME | The unique key identifying the variable, used by workloads to reference it. | Match this exact name, case-sensitive, in your workload configuration to consume the variable's value. |
| VALUE | The current value stored for the variable, read by agents at test execution. | Read as the literal value agents receive; update it with Edit rather than changing workload scripts directly. |
| ACTIONS | Holds the row-level controls for editing or deleting that variable. | Select the pencil icon to edit the variable or the trash icon to delete it. |
Controls reference
Refresh
Reloads the variables list from the server.
When to use: Use after another user or process may have changed variables, or if the list looks out of date.
Side effects: Read-only; re-fetches and redisplays the current list without changing any data.
Help
Opens help information for this page.
When to use: Use when you need guidance on how global variables work.
Side effects: Read-only; opens a help panel, no data changes.
Clear All
Deletes every global variable currently listed on the page.
When to use: Use when you want to reset the variable list entirely, for example when decommissioning a set of test configurations.
Side effects: Mutating and irreversible: all variables are removed at once; if the operation fails, LoadGen shows an inline message explaining why and the list is left unchanged.
Add variable
Opens a dialog to define a new variable by name and value.
When to use: Use when a workload needs a new shared configuration value, counter, or piece of dynamic data that doesn't exist yet.
Side effects: Mutating: saving the dialog adds a new row to the table and increases the variable count; LoadGen rejects the save if the name is empty or already in use.
Edit
Opens the same dialog used by Add variable, pre-filled with the selected row's current name and value.
When to use: Use to change the value of an existing variable, for example to update a counter or shared configuration value before the next test.
Side effects: Mutating: saving updates that row's VALUE column in place; the name can also be changed but must stay unique.
Delete
Removes a single variable from the list.
When to use: Use when a specific variable is no longer referenced by any workload and should stop being available to agents.
Side effects: Mutating and irreversible: the row disappears from the table and the variable count decreases by one; if the delete fails, LoadGen shows an inline message with the reason and the row stays.
Verify the result
After you add, edit, or delete a variable, the change appears immediately in the table: a new or updated row shows the Variable name and Value you saved, and the count badge next to the page title together with the 'Showing X of X variables' line update to match the new total. A deleted variable's row disappears from the table and is no longer available to agents at test execution. If a save, delete, or clear fails, LoadGen shows an inline error explaining the reason, for example a duplicate name, and the table retains its last known state. If a workload cannot resolve a variable you expect it to use, check this page first to confirm the exact name and value are defined here.
Troubleshooting
- Symptom: Saving a new variable fails with a message that a variable with that name already exists. Fix: Choose a different, unique Variable name, or use Edit on the existing row instead of creating a duplicate.
- Symptom: The Add variable dialog won't save. Fix: Enter a Variable name; LoadGen requires a name before it will save the variable.
- Symptom: Deleting a variable shows an inline error and the row stays in the table. Fix: Read the reason in the message, then retry Delete; if it persists, refresh the page and try again.
- Symptom: Clear All fails partway through. Fix: Note the reason shown in the inline message, then delete the remaining variables individually from the ACTIONS column instead.
- Symptom: A workload at test execution cannot find a variable you expect it to use. Fix: Confirm the exact spelling and case of the name in the VARIABLE NAME column match what the workload references.
- Symptom: The table is empty with no variables listed. Fix: Select Add variable to create the first one; an empty list is the starting state until you define one.
Related articles
- Next step: Load Testing: Load profiles - Workloads configured there reference global variables by name during a test.
- Next step: Load Testing: Run test - Agents read the current value of each global variable when a test run starts.
- See also: Agents & Capacity: Agents setup - Agents are the component that reads global variables at execution time.
- Prerequisite: Platform: Permissions - Controls whether your account can view or edit global variables on this page.