test-fullautomation / python-jsonpreprocessor

A preprocessor for json files
Apache License 2.0
2 stars 2 forks source link

Error message (5) #235

Closed HolQue closed 1 month ago

HolQue commented 3 months ago

W.r.t. indices and keys placed within curly brackets by mistake (instead of outside), I found three different types of error messages:

'Invalid syntax: Found index inside curly brackets in line '"val1"       : "${list_param[1]}"'. Indices in square brackets have to be placed outside the curly brackets.'
'Invalid syntax: Found index or sub-element inside curly brackets in the parameter '${testlist[${intval}]}''
'Invalid nested parameter format: '${list_param[${dict_param}['A']]}'.The '[<index>]' or '[<key>]' have to be outside of '${<variable name>}'.'

This should be aligned. The JsonPreprocessor should use one detection mechanism only for such kind of issues and therefore should provide only one kind of error message.

HolQue commented 2 months ago

Error messages are aligned. Retest successful. Issue can be closed.

test-fullautomation commented 1 month ago

integrated in RobotFramework AIO 0.11.0