RobotCode and external files

Hi all, I am interested if RobotCode supports loading external files (*.py) which contain test $VARIABLES?
I only found the configuration with the *.toml file on my quick internet research.

Thanks for your help.

@Syman Yes RobotCode supports this.
Just define your variables in your .py file like this

YOUR_VARIABLE = “Your content of this variable”

Import the .py file in the *** Settings *** section

*** Settings ***
Variables       my_variables.py

Yes sure,

you can use the robot.toml file like this:

variable-files = ["myvariable.pys", "myothervariables.py"]

[profiles.prod]
extend-variable-files = ["myvariable2.py"]

or you can search in the vscode settings for robotcode.robot.variableFiles and add you variable files there.

2 Likes

Thanks @daniel for your fast answer! Can you eventually send me the according documentation to that feature.

There is not much documentation at the moment (not enough time) but here are some links, and on the first link there is a video tutorial.

And for the VSCode setting, just search in vscode for the setting.

1 Like

I looked for this: robot.toml configuration settings | RobotCode