Projects actions

CreateProject

The CreateProject method sends a request to create a project.

Parameters:

  • Name (required): The name of the NeoLoad project.

  • DirectoryPath (optional): The location of the project. By default projects are created in NeoLoad projects folder.

  • Overwrite (optional): Default value is false. If set to true, an existing project with the same name and location is deleted.

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

OpenProject

The OpenProject method sends a request to open a project.

Parameters:

  • FilePath (required): The path to the NLP file.

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

SaveProject

The SaveProject method sends a request to save a project.

Parameters:

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

SaveAsProject

The SaveAsProject method sends a request to work on a copy of the current project.

Parameters:

  • Name (required): The name of the NeoLoad project.

  • DirectoryPath (optional): The location of the project. By default projects are created in NeoLoad projects folder.

  • Overwrite (optional): Default value is false. If set to true, an existing project with the same name and location is deleted.

  • ForceStop (optional): Default value is false. If set to true, running tests and recordings are stopped.

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

CloseProject

The CloseProject method sends a request to close the current project.

Parameters:

  • Save (optional): Default value is true. If set to false, current project is not saved.

  • ForceStop (optional): Default value is false. If set to true, running tests and recordings are stopped.

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

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 can't 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.

ContainsUserPath

The ContainsUserPath method allows to know if a User Path already exists.

Parameters:

  • Name (required): The name of the User Path.

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

IsProjectOpen

The IsProjectOpen method allows to know if a Project is already open.

Parameters:

  • FilePath (required): The path to the NLP file.

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

Exit

The Exit method sends a request to close NeoLoad. A project must have been closed first.

Parameters:

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