Execute YAML-based projects
You can run a YAML-based project from three places, whether it pairs a NeoLoad Controller project file with YAML files or uses YAML files on their own:
-
The NeoLoad Controller command line.
-
The Run a test section of NeoLoad Web.
-
The NeoLoad Web API.
NeoLoad Controller command line
The -project argument names the NeoLoad project file (.nlp) to launch. For every argument the Controller accepts, check out List of arguments.
After -project, list the YAML files that declare your test elements. You can also repeat -project for each file instead of listing them all after a single -project. Both of the following commands work:
-project "<path>/myproject.nlp" "<path>/servers.yaml" "<path>/user_paths.yaml"
or
-project "<path>/myproject.nlp" -project "<path>/servers.yaml" -project "<path>/user_paths.yaml"
To declare only YAML files, leave the project file out:
-project "<path>/servers.yaml" "<path>/user_paths.yaml" "<path>/populations.yaml" "<path>/scenarios.yaml"
-project can also name a folder. That folder must contain default.yaml and any files its includes reference.
Project folder
NeoLoad needs a project folder. When it loads the project, it looks there for resources such as JAR dependencies and the CSV files behind file variables. It also writes temporary files and the test result to this folder.
NeoLoad picks the project folder as follows:
-
When you specify a NeoLoad Controller project, the project folder is the folder of that project.
-
When you specify only YAML files, the project folder is the folder of the first YAML file.
Run a test from NeoLoad Web
The Run a test section of NeoLoad Web launches a YAML-based project in two steps:
-
Upload the project, either manually or through a Git import. The interface accepts:
-
A zipped NeoLoad Controller project.
-
A zipped NeoLoad Controller project with YAML files. NeoLoad Web loads
default.yaml, which can contain includes. -
Zipped YAML files on their own. NeoLoad Web loads
default.yaml, which can contain includes. -
A single YAML file. In this case the file can't contain
includes.
-
-
Set up your test, then start it. For the details of each run option, check out Run your tests (opens in new tab) in the NeoLoad Web documentation.
NeoLoad Web API
Use the Runtime API to upload a project and run a scenario in it:
-
Upload the project with the projects endpoint. The API accepts:
-
A zipped NeoLoad Controller project.
-
A zipped NeoLoad Controller project with YAML files.
-
Zipped YAML files on their own.
-
A single YAML file. In this case the file can't contain
includes.
-
-
Run a scenario in the uploaded project, and specify the YAML files to load. If you don't specify any, NeoLoad loads
default.yamlwhen the project contains one.