NeoLoad CheckVU
NeoLoad CheckVU runs each user path of your as-code project once against your application and reports whether it completes without blocking errors. Use it to find broken user paths before you spend virtual user resources on them. You start it with the neoload checkvu command from the NeoLoad command-line interface (CLI).
CheckVU isn't a load test, and it doesn't store results in NeoLoad Web.
This topic lists every option, environment variable, and limitation of the command. For the prerequisites, check out Install the NeoLoad CLI.
Syntax
To check your project, run the following command in the folder that contains your project file. Replace <project-file> with the name of your as-code YAML file, and [options] with any of the options you need:
neoload checkvu [options] <project-file>
CheckVU treats the folder that contains the project YAML file as the project folder. Store the assets that the project uses, such as CSV files, in that folder or in one of its subfolders.
Options
NeoLoad CheckVU accepts the following options, starting with the ones you use most:
|
Option |
Description |
|---|---|
|
-u, --user-path |
Runs only the named user path. Without it, every user path in the file runs in sequence. If the name doesn't match a user path, the command fails and lists the user paths it found. |
|
--output |
Writes the JSON result, and a folder of request and response files, to the folder you name. Without this option, the command writes nothing to disk. If you run the command again with the same path, it deletes the previous contents of the folder. |
|
-w, --work-dir |
Stores temporary engine files and logs. Defaults to a temporary directory. The command never deletes a directory that you supply. |
|
--keep-temp-work-dir |
Keeps the temporary work directory instead of deleting it. Has no effect alongside -w, because the command never deletes that directory. |
|
-e, --engine-jar |
Uses a specific CheckVU engine, given as a local path for machines without internet access or to keep using one engine version, or a download URL. Defaults to the cached engine. |
|
-j, --java |
Uses a specific java executable. Defaults to JAVA_HOME/bin/java, then java on your PATH. |
|
-s, --as-code-schema |
Checks the project against a specific schema, given as a path or a URL. Defaults to the schema published for your release. |
|
--ssl-cert |
Takes a certificate path, or False to stop checking certificates. Applies to both the schema check and the engine download. |
Two advanced options override only the keys you set in the engine configuration, and keep all other embedded values: --controller-properties for the controller, and --load-generator-properties for the load generator. Both take the path to a file containing the overriding properties.
Proxy options
If your application under test is only reachable through a proxy, use the following options to route the CheckVU traffic through it. They cover HTTP and HTTPS traffic to your application only. They don't cover NeoLoad Web API calls or the engine download, which uses the proxy environment variables instead.
|
Option |
Description |
|---|---|
|
--app-proxy |
Routes the traffic to your application through the proxy. Takes a host:port value. |
|
--app-proxy-username |
Sets the user name for a proxy that requires authentication. |
|
--app-proxy-bypass |
Lists the hosts that skip the proxy. Takes a comma-separated list of hosts. |
The proxy password has no command-line option on purpose. Set NEOLOAD_CHECK_VU_APP_PROXY_PASSWORD instead, which keeps it out of the process list and out of your pipeline logs.
Environment variables
You can set some values as environment variables instead of passing them as options. This is useful in a pipeline, where you set a value once for every run, and for secrets such as the proxy password, which shouldn't appear on the command line. Some variables have no matching option.
NeoLoad CheckVU reads the following environment variables:
|
Variable |
Matching option |
Description |
|---|---|---|
|
NEOLOAD_CHECK_VU_APP_PROXY_PASSWORD |
None |
Supplies the --app-proxy password. |
|
CHECKVU_CLI_KEEP_TEMP_WORK_DIR |
--keep-temp-work-dir |
Set it to 1 to keep the temporary work directory instead of deleting it. |
|
HTTPS_PROXY, HTTP_PROXY |
None |
Routes the engine download through a proxy. |
|
NO_PROXY |
None |
Lists the hosts that skip the proxy for the engine download. |
|
JAVA_HOME |
-j, --java |
Locates java when you don't pass -j. |
Where both exist, the command-line option overrides the environment variable.
Exit codes
NeoLoad CheckVU returns one of the following exit codes:
-
0: Every user path passed without blocking errors.
-
1: A user path failed, or the command couldn't run.
For the details of a failure, read The NeoLoad CheckVU result file.
Limitations
A check runs one iteration of each user path. This has the following limitations:
-
Each user path runs once. Populations, scenarios, and load profiles in the file don't run.
-
CheckVU uploads nothing to NeoLoad Web, so there's no stored result to compare against.
-
A single iteration can't show behavior under load.
-
A single iteration can't show whether an authenticated session stays active from one iteration to the next.
Troubleshooting
If a check fails to start or behaves unexpectedly, these are the usual causes:
|
Symptom |
Cause and fix |
|---|---|
|
No CheckVU engine available. |
The download failed and nothing is cached. Check your network or proxy settings, or pass -e with a local copy. |
|
The engine can't bind to a local port. |
A NeoLoad window is open, or another check is already running. Close the window or wait for the other check to finish, then run the command again. |
|
A valid file fails the schema check. |
The default schema doesn't match the schemaVersion in your file. Pass -s with the matching schema. |
|
No logs left after a failure. |
The command deleted the temporary work directory when it finished. Run again with -w, then read logs/neoload.log. |
Keep the work directory outside your project folder. The engine copies the whole project on every run, so a work directory nested inside the project duplicates it without limit.
What's next
To gate every commit on the exit code, automate as-code checks in your pipeline.