Getting below error message while trying to execute parallel testing using pabot

Command Used
pyhton -m pabot.pabot --processes 2 --outputdir Results 2 Test*.robot
Error Message
2024-04-30 17:21:43.805198 [PID:31384] [0] [ID:0] EXECUTING Nitori
2024-04-30 17:21:44.095085 [PID:31384] [0] [ID:0] Execution failed in Nitori with 1 failing test(s)

‘robot’ is not recognized as an internal or external command,
operable program or batch file.

WARN: No output files in “Results2\pabot_results”
0 tests, 0 passed, 0 failed, 0 skipped.

Output:
[ ERROR ] Reading XML source ‘’ failed: No such file or directory

Try --help for usage information.
Total testing: 0.20 seconds
Elapsed time: 0.38 seconds

You need to install robot:

python -m pip install robotframework

@HelioGuilherme66

Pabot does have install dependency for rf > 3.2 or something similar so there definitely should be robot executable but …

On certain sort of environments (like finance) - creating / installing executables at install time like pip does be disabled. Pabot 100% relies on these executables to be present and if they are not, pabot execution will fail. As alternative, pabot should get it’s interpreter and call that external robot with python -mrobot.run ... but there’s no such code in pabot. Only way to get this working is to patch few files in pabot manually

I did but still it is not working

  1. your PATH environment does not contain Scripts folder so any executables generated when python packages are available by default. How to fix, depends on how/where your python is installed. Easiest way would be to utilize virtual env of your choice.
  2. Pabot relies on python generated executable when spawning instance of robot framework · Issue #578 · mkorpela/pabot · GitHub - I’ve had this on local bank where i was doing qa consultation…

Made a patch against pabot to fix the issue i described earlier; use sys.executable to run robot by rasjani · Pull Request #584 · mkorpela/pabot · GitHub

1 Like