Open HolQue opened 1 month ago
I have an index. I use this index to get a value from a list. This value is an integer. I use this value as index to get a value from a list:
"index" : 1, "indexList" : [0,1,2], "param1" : ${indexList}[${indexList}[${index}]]
Result:
{'index': 1, 'indexList': [0, 1, 2], 'param1': '1'}
param1 is of data type str. Why this? There is no string conversion involved in the JSON code above.
param1
str
Expected is integer value 1.
1
Several combinations of this JSON code can be found in
https://github.com/test-fullautomation/python-jsonpreprocessor/blob/develop/test/testfiles/jpp-test_config_1500.jsonp
and
https://github.com/test-fullautomation/python-jsonpreprocessor/blob/develop/test/testfiles/jpp-test_config_1501.jsonp
Corresponding lines are commented out. Affected parameters: param03, param11, k20C, k21B
param03
param11
k20C
k21B
I have an index. I use this index to get a value from a list. This value is an integer. I use this value as index to get a value from a list:
Result:
{'index': 1, 'indexList': [0, 1, 2], 'param1': '1'}
param1
is of data typestr
. Why this? There is no string conversion involved in the JSON code above.Expected is integer value
1
.Several combinations of this JSON code can be found in
https://github.com/test-fullautomation/python-jsonpreprocessor/blob/develop/test/testfiles/jpp-test_config_1500.jsonp
and
https://github.com/test-fullautomation/python-jsonpreprocessor/blob/develop/test/testfiles/jpp-test_config_1501.jsonp
Corresponding lines are commented out. Affected parameters:
param03
,param11
,k20C
,k21B