Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 11 additions & 22 deletions config/robotframework_aio/release_items_JsonPreprocessor.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,35 +71,24 @@
* Added mechanism to prevent Python application freeze.
* Removed globals scope out of all exec method executions.
* Optimized errors handling while loading parameters.
* Improved duplicated parameters handling:
* Improved handling of duplicated parameters:

The content of the configuration file:
In following example different values are assigned to the same parameter several times. It can be seen that
the last assignment is the valid one. Previously assigned values will be overwritten. Please make sure to add
the full scope in case you refer to a dictionary key inside this dictionary:

| ``\u007b``
| ``...``
| ``\"params\" : \u007b``
| ``\"global\" : \u007b``
| ``\"var1\" : 1,``
| ``\"var2\" : 2,``
| ``\"var11\" : $\u007bparams.global.var1\u007d,``
| ``\"var21\" : $\u007bparams.global.var2\u007d,``
| ``\"var1\" : 10,``
| ``$\u007bparams.global.var2\u007d : 20,``
| ``\"var12\" : $\u007bparams.global.var1\u007d,``
| ``\"var22\" : $\u007bparams.global.var2\u007d``
| ``\u007d``
| ``\"global\" : \u007b``
| ``\"var1\" : 1,``
| ``\"var2\" : 2,``
| ``\"var1\" : $\u007bparams.global.var2\u007d,``
| ``\"var2\" : 3``
| ``\u007d``
| ``\u007d``
| ``...``
| ``\u007d``

Result:

| ``oJson['params']['global']['var1'] = 10``
| ``oJson['params']['global']['var2'] = 20``
| ``oJson['params']['global']['var11'] = 1``
| ``oJson['params']['global']['var21'] = 2``
| ``oJson['params']['global']['var12'] = 10``
| ``oJson['params']['global']['var22'] = 20``
Finally, the value of ``var1`` is 2 and the value of ``var2`` is 3.

* Self test extended by further test cases

Expand Down