pythonterminalrobotframework

how to run a robot framework script with python 3.7 from the terminal


I want to run my robot framework script through the command line terminal on macOS which by default runs on python 2.7 however my IDE is set to interpret my scripts using python 3.7 and therefore my PYTHONPATH is set to use 3.7 too and this enables me to locate my custom libraries

how would I run my robot script through the terminal using 3.7? my current command is simply:

robot -d Results myScript.robot

the test work fine when ran through the terminal within my IDE so I'm pretty sure that this is my only issue


Solution

  • python3 -m robot -d Results myScript.robot