test-fullautomation / python-jsonpreprocessor

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

Invalid nested parameter format (3) #195

Closed HolQue closed 3 months ago

HolQue commented 5 months ago

This works like expected (with list hard coded inside dictparam):

"dictparam" : {"A" : ["A", "B"]},
"stringparam" : "A",
"intparam" : 0,
${dictparam.${stringparam}}[${intparam}] : "C"

Outcome:

{'dictparam': {'A': ['C', 'B']}, 'intparam': 0, 'stringparam': 'A'}

But when I put the list inside a separate parameter, it went wrong;

"listparam" : ["A", "B"],
"dictparam" : {"A" : ${listparam}},
"stringparam" : "A",
"intparam" : 0,
${dictparam.${stringparam}}[${intparam}] : "C"

Outcome:

Error: 'Invalid nested parameter format: ${listparam}}, - The double quotes are missing!!!'!

Issue maybe similar to: https://github.com/test-fullautomation/python-jsonpreprocessor/issues/118

namsonx commented 3 months ago

Hello Holger,

This ticket was solved on stabi branch.

Thank you, Son

HolQue commented 3 months ago

Retest successful. Issue can be closed.