'robot' is not recognized as an internal or external command

Hello i am trying to test robot framework via jenkins, when i execute i get this error

FYI:
I am not using a virtual env
Python 3.11.1
pip 22.3.1 from C:\Users\Tester\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip (python 3.11)
robotframework 6.0.2
Path contain :
C:\Users\Tester\AppData\Local\Programs\Python\Python311\Scripts
C:\Users\Tester\AppData\Local\Programs\Python\Python311

the command works using cmd terminal, i need some assistance
Kind regards,

This is a typical error in Jenkins.

You need to set the PATH to include Python\Scripts.

1 Like

Thank you for assisting me, do i set them in the windows VAR environment or in the batch command ?

You can set in Jenkins job definition or pipeline environment.
Or in the batch file.
You can also create a .properties (Java style) file.

i am still a junior, more like a newbie haha, i didn’t understand what you ve said, is ot possible to send screenshots or a video that explains that ?

Sorry, you as a newbie must learn how to search the Internet.
For example, “set PATH in Jenkins jobs”

3 Likes