Integration · Performance testing · via REST API

Production-like test data for NeoLoad load tests

A load test is only as realistic as its data: a handful of test accounts and a near-empty database won't show how the system behaves at production volumes. Add a stage that refreshes the test database before neoload run. Synthesized masks, subsets or generates the data, and NeoLoad's virtual users read their values from it.

NeoLoad and Synthesized at a glance

There's no NeoLoad plugin to install: the pipeline calls the Synthesized REST API, then runs the test with the NeoLoad CLI.

Where the call goesA pipeline stage before neoload run, in GitLab, Jenkins, Azure DevOps or any CI server.
Running the testThe NeoLoad CLI (pip install neoload) logs in to NeoLoad Web with a token, uploads the project and runs it with your test settings.
Virtual user dataA NeoLoad SQL variable selects values, such as account logins, from the refreshed test database. NeoLoad supports MySQL, Oracle, DB2, PostgreSQL and Microsoft SQL Server for it.
SecretsGOVERNOR_ACCESS_KEY and the NeoLoad Web token NLW_TOKEN as masked CI/CD variables.

Set it up

1. Build the workflow in Governor

Create the workflow that fills the system under test: mask and subset production, or generate synthetic data. Run it once by hand and note its workflow ID.

2. Point NeoLoad at the data

Add a SQL variable that selects what virtual users need from the test database, for example customer logins. NeoLoad runs the query each time the scenario starts.

3. Add the variables

Add GOVERNOR_URL, WORKFLOW_ID, GOVERNOR_ACCESS_KEY, NLW_TOKEN and NLW_ZONE as CI/CD variables, with the key and the token masked.

4. Add the jobs

Refresh the data first, then run the load test, as in the pipeline below.

Example .gitlab-ci.yml

The data job gates the load test through needs. checkout is a scenario in the NeoLoad project, and checkout-load the test settings in NeoLoad Web.

.gitlab-ci.yml

stages:
- test-data
- load-test
 
prepare-test-data:
stage: test-data
image: alpine:3.20
resource_group: perf-database
before_script:
- apk add --no-cache curl jq
script:
- sh ./scripts/run-synthesized-workflow.sh
 
load-test:
stage: load-test
image: python:3.12-slim
needs:
- prepare-test-data
script:
- pip install neoload
- neoload login "$NLW_TOKEN"
- neoload test-settings --zone "$NLW_ZONE" --lgs 2 --scenario checkout createorpatch checkout-load
- neoload project --path ./neoload upload checkout-load
- neoload run --name "checkout-$CI_PIPELINE_ID" checkout-load

scripts/run-synthesized-workflow.sh

#!/bin/sh
# run-synthesized-workflow.sh: start a Synthesized workflow and wait for it.
# Needs GOVERNOR_URL, WORKFLOW_ID and GOVERNOR_ACCESS_KEY; uses curl and jq.
set -eu
API="$GOVERNOR_URL/external/api/v1"
AUTH="X-Access-Key: $GOVERNOR_ACCESS_KEY"
TIMEOUT_SEC="${TIMEOUT_SEC:-1800}"
 
RUN=$(curl -sSf -X POST -H "$AUTH" "$API/workflow/$WORKFLOW_ID/run")
RUN_ID=$(printf '%s' "$RUN" | jq -r '.workflow_run_id')
echo "Started workflow run $RUN_ID"
 
WAITED=0
while [ "$WAITED" -lt "$TIMEOUT_SEC" ]; do
RUN=$(curl -sSf -H "$AUTH" "$API/workflow-run/$RUN_ID")
STATUS=$(printf '%s' "$RUN" | jq -r '.workflow_run_status')
case "$STATUS" in
COMPLETED) echo "Test data ready"; exit 0 ;;
FAILED|STOPPED)
echo "Run $RUN_ID ended as $STATUS: $(printf '%s' "$RUN" | jq -r '.error_message')"
curl -sS -H "$AUTH" "$API/workflow-run/$RUN_ID/logs" | tail -n 50
exit 1 ;;
esac
sleep 10
WAITED=$((WAITED + 10))
done
echo "Timed out after $TIMEOUT_SEC seconds; stopping workflow $WORKFLOW_ID"
curl -sS -X POST -H "$AUTH" "$API/workflow/$WORKFLOW_ID/stop" || true
exit 1

For a self-hosted NeoLoad Web, add --url with your NeoLoad Web API address to neoload login. In Jenkins, put the data stage from the Jenkins page before the neoload commands.

Things to know

Use a dedicated key

An access key carries the permissions of the Governor user who generated it. Create a user that can reach only the workflows this pipeline runs, generate the key as that user, and give it a short expiry: keys are chosen from 1 hour to a year, and the docs say they can't yet be revoked.

One output database per environment

Two runs can't write to the same output database at the same time. If parallel pipelines or branches need data, give each environment its own workflow or output database.

Where the data goes

Workers read the source, mask, subset or generate, and write the target. Database contents stay with the workers and aren't sent to Governor, which, like the pipeline, only sees run status, logs and configuration. Run Synthesized on-premises, including air-gapped, and the data never leaves your environment; it is also available as SaaS.

Questions about NeoLoad and Synthesized

Is there a NeoLoad plugin?

No. A pipeline stage before the load test calls the Synthesized REST API, so it works with any NeoLoad setup that can reach your Governor over HTTPS. You need an HTTP client (the examples use curl and jq), the Governor URL, a workflow ID and an access key.

How do virtual users get the refreshed data?

Through a SQL variable. It runs a SELECT against the test database and stores the values in a temporary CSV file, so the test uses the data Synthesized just wrote. A File variable also works, if a pipeline step exports the values to CSV first.

Can a user path start the refresh itself?

It could send the API calls, but the Init container runs once for every virtual user, so the refresh would start many times. Run it once in the pipeline, before the test starts.

Why not load test on a copy of production?

A copy brings personal data into performance environments, which usually have looser access controls than production. Masking keeps realistic values and relationships without the real identities; generation creates synthetic records when production data can't be used at all.

Does it work with NeoLoad Web SaaS and self-hosted?

Yes. The CLI connects to NeoLoad Web SaaS by default; add --url to neoload login for a self-hosted NeoLoad Web. Only the pipeline talks to both NeoLoad and Synthesized.

Try it on one load test

Bring one NeoLoad scenario that needs realistic data, and see Synthesized prepare it before the run.

Updated November 2026

Tricentis and NeoLoad are trademarks of Tricentis. All other product names are trademarks of their respective owners.