Available methods

StartTest

The StartTest method sends a request to start a NeoLoad test.

Parameters:

  • ScenarioName (required): The name of the scenario to launch.

  • TestResultName (optional): The name of the test result.

  • Description (optional): The description of the test result.

  • Debug (optional): Default value is "false". If set to "true", the test result is launch in debug mode.

  • NLWeb (optional): Default value is "false". If set to "true", the test results are sent to NeoLoad web.

  • NLWebToken (optional): The NeoLoad Web token.

  • Variables (optional): A map allowing to update or create NeoLoad variables.

  • ApiKey (optional): To authenticate the command. Required if enabled on the Controller.

StopTest

The StopTest method sends a request to stop a NeoLoad test.

Parameters:

  • ForceStop (optional): Default value is "false". If set to "true", the test is forced to stop.

  • ApiKey (optional): To authenticate the command. Required if enabled on the Controller.

  • QualityStatus (optional): To force the Quality Status of a test result. Possible values are "PASSED" and "FAILED".

GetStatus

The GetStatus method provides the current status of NeoLoad:

  • NEOLOAD_INITIALIZING: NeoLoad is starting up.

  • NO_PROJECT: No project is opened.

  • PROJECT_INITIALIZING: A project is getting opened.

  • READY: Project is opened, NeoLoad is ready to start a test.

  • BUSY: NeoLoad is busy (a recording is in progress or stopping or there is a blocking window), a test cannot be started.

  • TEST_LOADING: The test is getting started.

  • TEST_RUNNING: The test is running.

  • TEST_STOPPING: The test is getting stopped.

Parameters:

  • ApiKey (optional): To authenticate the command. Required if enabled on the Controller.

AddVirtualUsers

The AddVirtualUsers method sends a request to add Virtual Users to a given population.

Parameters:

  • PopulationName (required): The name of the population.

  • VirtualUserCount (required): The number of Virtual Users to add.

  • ApiKey (optional): To authenticate the command. Required if enabled on the Controller.

StopVirtualUsers

The StopVirtualUsers method sends a request to stop Virtual Users to a given population.

Parameters:

  • PopulationName (required): The name of the population.

  • VirtualUserCount (required): The number of Virtual Users to add.

  • StopPolicy (required): The policy applied when stopping Virtual Users. Possibles values are "APPLY_DEFINED" and "STOP_IMMEDIATELY", default value is "APPLY_DEFINED".

  • ApiKey (optional): To authenticate the command. Required if enabled on the Controller.

StartInfrastructures

The StartInfrastructures method sends a request to start infrastructures.

Parameters:

  • Infrastructures (required): The YAML or JSON file describing the infrastructure to use. For more information, see "Infrastructure definition".

  • NCPLogin (optional): Connects to NeoLoad Cloud Platform using the specified login and password. The password hash command line utility must be used to hash the password before using this command. This command is necessary when using NeoLoad Cloud Platform to launch a load test with a Cloud Load Generator or Virtual User session. The format must be as follows: "<login>:<hashed password>" or "<token>". For example: "loginUser:VyVmg==".

  • ApiKey (optional): To authenticate the command. Required if enabled on the Controller.

StopInfrastructures

The StopInfrastructures method sends a request to stop infrastructures.

Parameters:

  • ApiKey (optional): To authenticate the command. Required if enabled on the Controller.

GetInfrastructuresStatus

The GetInfrastructuresStatus method provides the current status of infrastructures. An Infrastructure Status is composed of an Infrastructure State (STOPPED or RUNNING) and two Infrastructure Transitions (the current one and the last one).

A Transition is composed of a name (STARTING or STOPPING) and a Step (NONE, LOADING, VALIDATING, PROVISIONING or DEPROVISIONING) or a Result (NONE, SUCCEEDED or FAILED).

Parameters:

  • ApiKey (optional): To authenticate the command. Required if enabled on the Controller.