[Enhancement] Extend documentation for robot.toml
and describe the differences between normal settings and settings that can be extend-
better
#349
Labels
Describe the bug
When I use multiple profiles with matching sections (for example variables) the second profile completely overwrites the first profile section.
In my case I had profiles with different variables and only the variable of the second profile was used.
This is not what I expect. When using robot with arguments, I can use an argument several times with different values and only the last will count (robot -v ENV:dev -v ENV:test . will run with variable ENV set to test)
Using a robot.toml should have the same behavior, so I expect the corresponding sections to be merged. If an item in the section is repeated in the next profile, the value should be overwritten with the latter.
Steps To Reproduce
Attached a robot file and a toml file.
run this in the terminal:
robotcode -p one -p two -p three robot .
This test logs 0-0-3 in the console
Expected behavior
I expect it to log 1-2-3, but the variables section in profiles one and two are overwritten so the default values are logged.
It should behave the same as:
robot -v One:1 -v TWO:2 -v THREE:3 .
Desktop (please complete the following information):
Attachment:
Archive.zip
The text was updated successfully, but these errors were encountered: