Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Robotframework Toml Inheritance does not work? #536

Unanswered
KASHElbassraoui asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

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"
You must be logged in to vote
1 reply
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /