Answered question

How can I run a neoload test via Gitlab (CICD) without having Neoload Web ?

Hello,

As I don't have neoload web, I miss some parameters :

  • >
  • docker run --rm
    -v "$(pwd)/neoload-project/archive":/neoload-project
    -e SCENARIO_NAME=smoke-test
    -e NEOLOADWEB_TOKEN=<Your Token>
    -e TEST_NAME=CI-smoke
    -e RESERVATION_ID=<ReservationId>
    -e RESERVATION_DURATION=<ReservationDuration>
    -e RESERVATION_WEB_VUS=<ReservationNumberOfWebVUs>
    -e RESERVATION_SAP_VUS=<ReservationNumberOfSapVUs>
    -e CONTROLLER_ZONE_ID=<Your ZoneID>
    -e LG_ZONE_IDS=<ZoneID#1>:<LG count#1>, <ZoneID#2>:<LG count#2>
    neotys/neoload-web-test-launcher:latest

    Can you help me please ?

    Thanks

jaouher C.
jaouher C.

jaouher C.

Level
1
110 / 750
points

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful

Other answers

As per the container documentation, this container has been deprecated but would still require Neoload Web, you can run the Docker controller container if needed. You would need save the test results before the container is destroyed

jaouher C.
jaouher C.

jaouher C.

Level
1
110 / 750
points

Hello,

Can You give me please the command line to run the docker controller without Neoload Web?
Thanks

In the dockerhub page of the NeoLoad controller you have a section called "Stand-Alone Usage" where you can run a test with that controller without NeoLoad Web. However by default it requires a collaboration project in SVN and an enterprise license.

Still you can override the entrypoint to use all the regular command line options instead of the one required by this image. This way you can useĀ  a local project and mount a volume too to use a local license if needed knowing that the controller will search for a license file under $HOME/.neotys/neoload

This is an example with a local project but a shared license on NTS:

docker run --rm --entrypoint="/home/neoload/neoload/bin/NeoLoadCmd" -v $HOME/foo:/tmp/foo neotys/neoload-controller --project /tmp/foo/ExampleSimple/ExampleSimple.nlp --launch scenario1 --leaseServer nts --nts http://mynts:8000 --nts_login foo:A3gGfqR+nS8X5uoArMLvYw== --leaseLicense 10:1 --noGUI

jaouher C.
jaouher C.

jaouher C.

Level
1
110 / 750
points

Hello Nouredine,

Thanks for your message.

I want to run a local test (without Neoload web and without NTS server).

I tried this command:

Test_NEO:
image:
name: /neotys/neoload-controller:7.10.0
entrypoint: ["/bin/sh", "-c"]

stage: Test
script:

  • mkdir $HOME/.neotys
  • mkdir $HOME/.neotys/neoload
  • cd $HOME/.neotys/neoload
  • cp /builds/continuous.deployment/perf-tests/neoload/license.lic /home/neoload/.neotys/neoload/
  • cd /home/neoload/.neotys/neoload
  • ls -a
  • chown neoload:neoload license.lic
  • ls -la
  • |
  • /home/neoload/neoload/bin/NeoLoadCmd \
    -project /builds/continuous.deployment/perf-tests/neoload/API_Missionnement_PieceJointe/API_Missionnement_PieceJointe.nlp \
    -launch Scenario_Juillet_2021 \
    -testResultName aa \
    -report report.pdf \
    -noGUI

    And I have this message:

    API_Missionnement_PieceJointe.nlp file has been found in /builds/continuous.deployment/perf-tests/neoload/API_Missionnement_PieceJointe.
    Logging to /home/neoload/.neotys/neoload/v7.10/logs, as user: neoload
    Loading project: /builds/continuous.deployment/perf-tests/neoload/API_Missionnement_PieceJointe/API_Missionnement_PieceJointe.nlp
    Project API_Missionnement_PieceJointe loaded
    Found a valid NLWeb configuration : URL=[https://neoload-rest.saas.neotys.com]
    ERROR: The test duration in undetermined for this scenario. The lease of a license cannot be automatic, please do it manually.
    ERROR: Unable to automatically lease a server license
    com.neotys.nl.i.P: Issues detected before executing scenario "Scenario_Juillet_2021"
    at com.neotys.nl.controller.az.a(az.java:373)
    at com.neotys.nl.controller.az.a(az.java:319)
    Exit with status: 2TS

    Can you give me please the right command ?

    Thanks