Closed HolQue closed 4 weeks ago
In https://github.com/test-fullautomation/python-jsonpreprocessor/issues/104 I asked if it shall be supported by the JsonPreprocessor to apply an index to a string.
Test case https://github.com/test-fullautomation/python-jsonpreprocessor/blob/develop/test/testfiles/jpp-test_config_1500.jsonp gives evidence that this works fine. Therefore string indices should be handled as officially supported feature.
But this combination does not work:
"intParam" : 1, "strParam" : "ABC", "element" : ${strParam.${intParam}}
Result:
Error: 'Invalid expression found: '${strParam.${intParam}}'.'!
For comparison, the same expression wrapped in quotes, work:
"element" : "${strParam.${intParam}}"
{'element': 'B', 'intParam': 1, 'strParam': 'ABC'}
(like expected)
The first code example should work also.
Covered by JPP_1501
Retest successful. Issue can be closed.
integrated in RobotFramework AIO 0.11.0
In https://github.com/test-fullautomation/python-jsonpreprocessor/issues/104 I asked if it shall be supported by the JsonPreprocessor to apply an index to a string.
Test case https://github.com/test-fullautomation/python-jsonpreprocessor/blob/develop/test/testfiles/jpp-test_config_1500.jsonp gives evidence that this works fine. Therefore string indices should be handled as officially supported feature.
But this combination does not work:
Result:
Error: 'Invalid expression found: '${strParam.${intParam}}'.'!
For comparison, the same expression wrapped in quotes, work:
"element" : "${strParam.${intParam}}"
Result:
{'element': 'B', 'intParam': 1, 'strParam': 'ABC'}
(like expected)
The first code example should work also.