Answered question

How to execute yaml files command line on Windows server

I try to execute a yaml file (which overrides an existing scenario) with commandline on a Windows Server 2012.
I got always the error that there is no loaded project.
However I can open the project manually in NeoLoad GUI without any problem and run the scenario manually.

I have used exactly the same yaml file & command line instruction on Windows 10 and there no issue at all. NeoLoad GUI is launched and the scenario is executed.

When I look in the log files on the Windows Server, I see only an error that the agent is not registered (but I don't have a clue why).

Is this permissions related?

Wim D.
Wim D.

Wim D.

Level
0
40 / 100
points
Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

It’s a path issue, remove Java 11 from the path, Neoload v7.6 needs to use its own JRE

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful

Other answers

Wim D.
Wim D.

Wim D.

Level
0
40 / 100
points

@Neil W.

I removed Java 11 from the path system variable but still the same error. Any other idea why this is not working on my Windows Server?

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

If you type in Java -version now, what does it say?

Wim D.
Wim D.

Wim D.

Level
0
40 / 100
points

Hi Neil,

I adapted the JAVE_HOME & PATH variable to point to the java in the NeoLoad bin folder. First time it didn't work neither until I tried to run another yaml file which was successful. After that test, I ran my initial test again and now it works!!

I'm very grateful for your help and hinting me in the right direction! Much appreciated as I was chewing for a couple of hours on this problem :-)