-
-
Notifications
You must be signed in to change notification settings - Fork 28
Robotframework Toml Inheritance does not work? #536
-
I want to create a main profile and three sub-profiles in the Toml file for the Robotframework tests.
I tried the following
[profiles.1]
inherits = "default-profile"
and in [profiles.1.variables] only those that differ from the base profile.
Unfortunately, inheritance does not work as expected because the other variables cannot be found in the main profile.
It actually expects all other variables to have values, otherwise the test throws errors saying that the variables are either empty or cannot be found at all.
Are there certain rules that need to be followed?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
I believe that what you'd like to use is the extend-variables option instead.
https://robotcode.io/03_reference/config#extend-variables
This should 'append' or change the values set in your default profile and keep the rest as inherited.
[profiles.1]
inherits = "default-profile"
[profiles.1.extend-variables]
VAR = "value"
Beta Was this translation helpful? Give feedback.
All reactions
-
yes @GerwinLaagland is correct, see also here https://robotcode.io/02_get_started/configuration#extending-vs-replacing-settings
Beta Was this translation helpful? Give feedback.