Dear Experts, I try to execute a Jenkins build to trigger a Neoload scenario that uses the license configured in local machine (free version of 50 concurrent users). Jenkins is also installed in local machine. However the Jenkins build fails stating that "No license file found for user". The issue occurs when this test is executed after triggering a Jenkins build to execute a Neoload scenario that leases the license from Neoload Web. (license gets leased and unleased back to Neoload Web properly). The same scenario got executed without any issues when the test was executed before the test with leased operation was performed.
Please assist why this occurs and how to overcome this. Thanks very much in advance.
I'm confused at first you talked about a FREE license version and then you mentioned a lease of license on NeoLoad Web. But the latter can't be with a FREE license as it's not a shared license.
You said that it worked before but was it with your FREE license?
What is the jenkins output of your job so we can see the command line that is called by your job?
Test 1: Executed with free license of Neoload from Jenkins: Result : Test got executed
Test 2: Executed with commercial license leased for 1 hour from Neoload Web from Jenkins : Result : Test got executed
Test 3: Repeat of Test 1: Executed with free license of Neoload from Jenkins: Result : Test failed with reason that license is not available
Console Output from Jenkins Job:
Started by user admin Running as SYSTEM Building in workspace C:\Program Files (x86)\Jenkins\workspace\PostProject [PostProject] $ cmd /c call C:\WINDOWS\TEMP\jenkins8431188378540189392.bat
C:\Program Files (x86)\Jenkins\workspace\PostProject>Cd C:\Program Files\NeoLoad 7.0\bin
C:\Program Files\NeoLoad 7.0\bin>NeoloadCmd -noGUI -project ~.nlp -launch Check -report C:\TEMP\~~\Results_Jenkins_2611_9.xml
ITMP.nlp file has been found in C:\TEMP\~~.
Logging to C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Neotys\NeoLoad\v7.0\logs, as user: iiii
No license file found for user: iiii
C:\Program Files\NeoLoad 7.0\bin>exit 1
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
With the free licence, the default behaviour is licenced by machine (on windows) so you shouldn't see any user errors, assuming somehow your licence is per user profile (maybe linux is per user)... the user running Jenkins/node and the user your are using to run the test manually, are they different accounts? typically jenkins deployments use a dedicated user to run services... this user might not have a licence installed
Yea, The issue was with the user profile. The user running Jenkins/node and the user your are using to run the test manually, are different accounts. It was re-installed with admin with same user and it now works fine. Thank you very much