mkorpela / pabot

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

Unable to locate the resource file when the directory name has spaces upon using Pabotlib --resourcefile #575

Open Gl1mpse-Git opened 7 months ago

Gl1mpse-Git commented 7 months ago

I'm working on a RF project with directory names that contain spaces and special characters. When I tried to run a pabot command using --pabotlib --resourcefile I encountered a warning from the Pycharm's terminal “specified resource file doesn’t exist. Some test may fail or continue forever.”

The command I used is something like this: pabot --processes 2 --pabotlib --resourcefile "my\ data\ files/users.dat" "my tests"

I've played around the quotes in the command but then I encountered this error:

ValueError: invalid literal for int() with base 10: 'files/users.dat'

It seems like it’s splitting the path on the spaces.

Locating resource file will only work by renaming the directory and removing the spaces, but spaces in the path to the tests is ok.

For additional info: You can refer to this thread: https://forum.robotframework.org/t/how-do-you-setup-test-data-when-running-parallel-tests-using-pabot/7049/12