mkorpela / pabot

Parallel executor for Robot Framework test cases.
https://pabot.org
Apache License 2.0
468 stars 151 forks source link

Pabot relies on python generated executable when spawning instance of robot framework #578

Open rasjani opened 5 months ago

rasjani commented 5 months ago

In certain security minded environments, when installing python packages exe wrappers are not created. For example, when installing robotframework, there won't be robot.exe.

Pabot relies on these wrappers to be present and fails as they aren't available.

As alternative to calling robot - something like this could be used:

import sys
cmd_instead_of_robot = [sys.executable, "-mrobot.run"]

For example, i'd guess something like above is happening here: https://forum.robotframework.org/t/getting-below-error-message-while-trying-to-execute-parallel-testing-using-pabot/7236

Since pabot will pull on robot as install dependency, robot.exe should be present -- unless original poster's PATH's are not correct. But since i've worked in one client that had this similar issue on, it might be because of missing robot.exe.

I've made some of these patches last year for my own use, if needed, i could rework those and submit a pr.