Answered question

Execute neoload web test form jenkins

Hello Team, Need your assistance to configure Jenkins build to trigger a test from Neoload Web.
Project : Checked out from GitHub (Confgiured in Jenkins)
Contollers and Load Generators: To be used from Neoload Web
What should be the configuration to point to Neoloadcmd.exe on the Controllers pointed to Neoload Web?
License Configured in neoload Web needs to be used for the execution -> configured in Shared license option in Jenkins build

Harish N.
Harish N.

Harish N.

Level
1
111 / 750
points
Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

Neoload Web needs to be set up and ready, the docker container just triggers Neoload Web to via the nlweb API. I would suggest reviewing the NLWeb training in the academy: https://academy.neotys.com/courses/neoload-web/

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful

Other answers

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

Jenkins can instruct Neoload Web to launch a test via the Neoload Web API, to make this simple, we have provided a Docker wrapper around the API, have Jenkins launch the Docker container with the required settings and that will contact the api and run the test. I don’t have the link handy on my phone but search Docker HUb for Neoload and you will find it

Harish N.
Harish N.

Harish N.

Level
1
111 / 750
points

Hi Neil, Thank you for the response. I tried to use below command in the neoload executable of the jenkins build. But it failed. Please let know where I am going wrong.
docker run -d --rm \ -e MODE=Managed -e NEOLOADWEB_URL=full url\ -e NEOLOADWEB_TOKEN=token value \ neotys/neoload-controller
I get the exception
java.nio.file.InvalidPathException: Illegal char <:> at index 57:

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team
Harish N.
Harish N.

Harish N.

Level
1
111 / 750
points

Thank you, very much -Neil
Do I need to trigger command line from Jenkins build or execute a Neoload scenario?
if I use the command line trigger, I need to trigger the neolaodcmd.exe in neoload web controller and then run below command. How to trigger neolaodcmd in controller?
docker run --rm\-e NEOLOAD_PROJECT_URL=giturl.zip\-e NEOLOADWEB_URL=nlwebapiurl\-e NEOLOADWEB_TOKEN=token value\-e TEST_RESULT_NAME=Git-Jenkins-NL\-e SCENARIO_NAME=SN\ neotys/neoload-web-test-launcher

If I use the 2nd option of using Neoload plugin in Jenkins build, again how to point to the executable and other project settings. Sorry , am very new to Jenkins usage on a docker. Is there any documentation with examples?