Unanswered question

How can I use a license from NeoLoad Web for Jenkins integration?

Hello,

I'm trying to execute a NeoLoad scenario within Jenkins and I'm having some problems configuring the setup with the license. I configured the pipeline in Jenkins using a local project and existing license option.

When we run the test manually from NeoLoad, we have to lease a number of users from that license with NeoLoad Web where we have an URL (https://neoload-api-eu.saas.neotys.com) and an access token for authorization.

My question is this...how can I make this step in Jenkins? I tried leasing the users manually then running the Jenkins job and it's not working. I also tried to add:

-leaseServer nlweb -leaseLicense 50:1 in the custom command option and I get this error:

Found a valid NLWeb configuration : URL=[https://neoload-rest.saas.neotys.com]
An error occurred during Controller initialization: Could not send Message. -- Error caused by : HTTP response '400: Bad Request' when communicating with https://neoload-rest.saas.neotys.com/nts/ws/license

Do you know what the issue might be? What I'm doing wrong? How I can configure this type of license? Do I have to use neotys team server or not?

Thank you!

George M.
George M.

George M.

Level
0
48 / 100
points

Answers

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

You are very close, you have to specify the NLW URL as you are using the EU saas

-nlwebAPIURL <APIURL>

George M.
George M.

George M.

Level
0
48 / 100
points

Thanks Neli for you response,

Still not working properly :) I've added:

-nlweb -nlwebAPIURL <https://neoload-api-eu.saas.neotys.com>; -leaseServer nlweb -leaseLicense 50:1

and it says

noGUI -nlwebAPIURL nlweb -leaseLicense 50:1 0<https://neoload-api-eu.saas.neotys.com/ 1>-leaseServer
The filename, directory name, or volume label syntax is incorrect.

Do I also need to add the token for authorization like: -nlwebToken ?

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

yes, you still need the token, it also looks like you have some extra characters in there, why is teh url in <> with a ; at the end, here is a working example: /home/neoload/neoload/bin/NeoLoadCmd -project /var/lib/jenkins/workspace/full@2/CPVWeatherCrisis.nlp -launch 'API Limit Test' -testResultName 'Pipeline API Limit Test (build 36)' -description 'WeatherCrisis API Limit Testing (Mysql + Rest API) through pipeline' -noGUI -nlweb -nlwebToken **** -leaseServer NLWeb -leaseLicense 51:2

George M.
George M.

George M.

Level
0
48 / 100
points

yea, the ";" character was indeed wrong.

I modified the command like:

-nlwebAPIURL <https://neoload-api-eu.saas.neotys.com>; -nlwebToken **** -leaseServer NLWeb -leaseLicense 50:1

and no luck - guess something is wrong here, hmm - do you have more hints please?

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

your url is still in <> and ends with a ; in your post here

George M.
George M.

George M.

Level
0
48 / 100
points

Thank you a lot Neil! now it worked, the test ran successfully - we now just need to add the report I guess, will search the documentation for this. Thanks again for your support.