Integration · Performance testing · via REST API
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.
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 goes | A pipeline stage before neoload run, in GitLab, Jenkins, Azure DevOps or any CI server. |
|---|---|
| Running the test | The 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 data | A 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. |
| Secrets | GOVERNOR_ACCESS_KEY and the NeoLoad Web token NLW_TOKEN as masked CI/CD variables. |
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.
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.
Add GOVERNOR_URL, WORKFLOW_ID, GOVERNOR_ACCESS_KEY, NLW_TOKEN and NLW_ZONE as CI/CD variables, with the key and the token masked.
Refresh the data first, then run the load test, as in the pipeline below.
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
scripts/run-synthesized-workflow.sh
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.
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.
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.
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.
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.
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.
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.
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.
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.
Bring one NeoLoad scenario that needs realistic data, and see Synthesized prepare it before the run.
Tricentis and NeoLoad are trademarks of Tricentis. All other product names are trademarks of their respective owners.