Install the NeoLoad CLI
The NeoLoad command-line interface (CLI) checks your as-code projects on your machine and runs them in NeoLoad Web from a terminal or a pipeline. You don't need the NeoLoad desktop application to install the CLI or to write and check an as-code project. This topic explains how to install the CLI and how it downloads the CheckVU engine. The CLI needs this engine to run NeoLoad CheckVU, which runs each user path once against your application and tells you whether it completes.
Before you start
The NeoLoad CLI needs the following software on your machine:
-
Python 3, which runs the CLI.
-
Java Development Kit 21 or later, which the CheckVU engine needs. The CLI refuses an older version and reports the one it found.
To check the versions, run the following commands:
python --version
java -version
Install the CLI
Install the CLI and confirm the version:
pip install neoload
neoload --version
On macOS and Linux, if pip uses Python 2, use pip3.
If your shell can't find neoload after you install it, add the directory where pip installs scripts to your PATH. Or run python -m neoload, which works the same way.
Configure the CheckVU engine
The first time you run NeoLoad CheckVU, the CLI downloads the CheckVU engine and caches it. Every later run reuses that copy, so the download happens only once. The engine is specific to your operating system and architecture, because it includes its own browser driver.
The CLI stores the engine in one of the following locations, depending on your operating system:
|
Operating system |
Cache location |
|---|---|
|
macOS |
~/Library/Application Support/neoload-cli/1.0/checkvu/ |
|
Windows |
%LOCALAPPDATA%\neotys\neoload-cli\1.0\checkvu\ |
|
Linux |
~/.local/share/neoload-cli/1.0/checkvu/ |
Use a local engine
If your machine can't reach the CheckVU download, provide the engine and the schema yourself. Pass the engine with -e. This option accepts a local path or a URL, and the CLI skips the cache. Download the schema from the neoload-models repository (opens in new tab) and pass it with -s:
neoload checkvu -e ./neoload-checkvu-cli.jar my-project/default.yaml
-e also lets you keep using one engine version, for example when you compare two test versions.
Choose the Java executable
If your PATH has more than one java executable, pass -j to choose the one that runs the engine.
Download the engine through a proxy
Behind a proxy, the engine download follows the standard HTTPS_PROXY, HTTP_PROXY, and NO_PROXY variables. The proxy that reaches your application under test is a separate option of the neoload checkvu command. For details, check out NeoLoad CheckVU.
What's next
Once you install the NeoLoad CLI, check your first user path to see the whole cycle on a small project.