I am invoking Robot Framework on a folder with a command like following:
robot --name MyTestSuite --variablefile lib/global_variables.py --variable TARGET_TYPE:FOO --variable IMAGE_TYPE:BAR --prerunmodifier MyCustomModifier.py ./tests
MyCustomModifier.py
contains a simple SuiteVisitor class, which includes/excludes tags and does a few other things based on some of the variable values set.
How do I access TARGET_TYPE
and IMAGE_TYPE
in that class? The method shown here does not work, because I want access to the variables before tests start executing, and therefore I get a RobotNotRunningError
with message Cannot access execution context
.
After finding this issue report, I tried to downgrade to version 2.9.1 but nothing changed.