diff --git a/config/robotframework_aio/release_items_JsonPreprocessor.json b/config/robotframework_aio/release_items_JsonPreprocessor.json index 51dab9ad..f79e3495 100644 --- a/config/robotframework_aio/release_items_JsonPreprocessor.json +++ b/config/robotframework_aio/release_items_JsonPreprocessor.json @@ -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