Secret token from a file as API authentication Header # read the contents of a file in as a static API tokenĬat. Correlation of values and tokens # gets a trace token from one request and uses it in the header of another NeoLoad Compose functionality goes far Beyond the TL DR section example, as clearly seen in the following verbose examples. If you simply want to use any zone with at least one available controller and load generator: nlc config zone any To pre-configure NeoLoad Compose: nlc config zone test-setting To log in to your NeoLoad CLI: neoload login -url You must pre-configure NeoLoad Compose with a Zone and test-settings Name.You must have load infrastructure available in a NeoLoad Web Zone.The NeoLoad CLI must already be logged in to an instance of NeoLoad Web.NeoLoad Compose can also be used to run tests, but there are a few prerequisites: NeoLoad Compose can be referenced by any of the following command names: They are to simplify and augment the capabilities of the NeoLoad Platform and componentry within specific contexts (command line and CI). NOT A STANDALINE LOAD-THROWERīoth NeoLoad Compose and the official NeoLoad CLI are not intended to be a standalone load slinging engine. The point is: nlc primarily helps you compose the test assets. You can also simply use nlc to create the load tests, then use ncli to run and report on it the same way as you would any other type of NeoLoad test. NeoLoad Compose also provides helper subcommands to run certain operations using the official NeoLoad CLI (ncli), such as 'run' and 'report'. There are additional flags for various commands to preserve precision of how the ledger is applied. NeoLoad Compose (nlc) is a fluent CLI so that you can chain commands together either as one complete command or as separate calls to nlc with the -c continuation flag.Įach of these subcommands adds your intent to a sequential 'general ledger', then interprets that sequence into the NeoLoad as-code YAML format. However, if you find something you'd like improved, either raise an issue in this repo, contact the author via the link above, or fork and create a PR to this repo that adds/fixes your particular thing. If there is something you feel you can't to with nlc, it's likely that you can express it in NeoLoad as-code YAML directly, or via the traditional NeoLoad Desktop Designer (GUI). If you like what you see and want to discuss or even contribute to it, please contact the author directly is also not meant to be a complete replacement (functional equivalent) of writing your own YAML, particularly in advanced situations. This is currently a prototype project of Paul Bruce and is not supported by Neotys. You have attached at least one load generator and controller to a zone.You have access to NeoLoad Web (SaaS or managed).You have installed the official NeoLoad CLI.You have run 'pip install neoload-compose'.Of course, nothing is this simple in load testing, but this is a good start for a simple API test. The idea is simple enough to just show with actual commands: nlc config zone any test-setting M圜omposeTest Secret token from a file as API authentication Header.Credentials (Username / Password) from CSV file.The primary goal of this utility is to provide simple semantics that are friendly to both humans (on a console/terminal) and automation contexts (such as pipelines). NeoLoad Compose is a simple command-line interface for creating API load tests that run on the NeoLoad Platform.
0 Comments
Leave a Reply. |