test-fullautomation / python-jsonpreprocessor

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

Parser harmed by line breaks #259

Closed HolQue closed 4 weeks ago

HolQue commented 1 month ago

This works:

"dictParam1" : {"kA" : "A", "kB" : "B"},
"dictParam2" : {"kA" : "A",
                "kB" : "B"},
"A" : 1,
"dictParam3" : {"kA" : "${A}", "kB" : "B"},
"dictParam4" : {"kA" : "${A}",
                "kB" : "B"},
"dictParam5" : {"kA" : ${A},
                "kB" : "B"}

The last one without line break in between does not work:

"dictParam6" : {"kA" : ${A}, "kB" : "B"}

Error: 'Invalid parameter format: ${A}, "kB" - The double quotes are missing!!!'!

Astonishing that ', "kB"' is part of the error message. Seems that the key-value-pair separation does not work properly.

But line breaks should not make a difference.

HolQue commented 1 month ago

Covered by JPP_1700

namsonx commented 1 month ago

Hello Holger,

I pushed the commit aa5e0670f40 to fix the issue mentioned in this ticket. I also updated expected result and enabled test case JPP_1700. Please help me review and verify this issue.

Thank you, Son

HolQue commented 1 month ago

Retest successful. Issue can be closed.

test-fullautomation commented 4 weeks ago

integrated in RobotFramework AIO 0.11.0