diff --git a/test/JPP_TestUsecases.csv b/test/JPP_TestUsecases.csv index d72a6054..b4553c53 100644 --- a/test/JPP_TestUsecases.csv +++ b/test/JPP_TestUsecases.csv @@ -136,4 +136,6 @@ JPP_1658|NOT_EXISTING_PARAMETERS|BADCASE|JSON file with not existing parameters JPP_1659|NOT_EXISTING_PARAMETERS|BADCASE|JSON file with not existing parameters at several positions (10) JPP_1660|NOT_EXISTING_PARAMETERS|BADCASE|JSON file with not existing parameters at several positions (11) JPP_1661|NOT_EXISTING_PARAMETERS|BADCASE|JSON file with not existing parameters at several positions (12) +JPP_1700|LINE_BREAKS|GOODCASE|JSON file with and without line breaks inside expressions +JPP_1800|SELF_ASSIGNMENTS|GOODCASE|JSON file with self assignments of strings, lists and dictionaries JPP_1901|ASSIGNMENTS_BY_REFERENCE|GOODCASE|JSON file with list assignments (by reference) diff --git a/test/JPP_TestUsecases.html b/test/JPP_TestUsecases.html index b76ba6a6..578d0486 100644 --- a/test/JPP_TestUsecases.html +++ b/test/JPP_TestUsecases.html @@ -4556,6 +4556,72 @@ 137 + + + +JPP_1700 + + + + +LINE_BREAKS + + + + +GOODCASE + + + + +JSON file with and without line breaks inside expressions
+Expected: JsonPreprocessor returns expected value + + +
+ + + + + + + +138 + + + + + +JPP_1800 + + + + +SELF_ASSIGNMENTS + + + + +GOODCASE + + + + +JSON file with self assignments of strings, lists and dictionaries
+Expected: JsonPreprocessor returns expected value + + +
+ + + + + + + +139 + + @@ -4586,7 +4652,7 @@
 

-
Generated: 27.03.2024 - 11:21:23
+
Generated: 03.04.2024 - 09:23:46
 
diff --git a/test/JPP_TestUsecases.rst b/test/JPP_TestUsecases.rst index ae74754d..cbe4c651 100644 --- a/test/JPP_TestUsecases.rst +++ b/test/JPP_TestUsecases.rst @@ -1443,6 +1443,26 @@ Test Use Cases ---- +* **Test JPP_1700** + + [LINE_BREAKS / GOODCASE] + + **JSON file with and without line breaks inside expressions** + + Expected: JsonPreprocessor returns expected value + +---- + +* **Test JPP_1800** + + [SELF_ASSIGNMENTS / GOODCASE] + + **JSON file with self assignments of strings, lists and dictionaries** + + Expected: JsonPreprocessor returns expected value + +---- + * **Test JPP_1901** [ASSIGNMENTS_BY_REFERENCE / GOODCASE] @@ -1453,5 +1473,5 @@ Test Use Cases ---- -Generated: 27.03.2024 - 11:21:23 +Generated: 03.04.2024 - 09:23:46 diff --git a/test/JPP_TestUsecases.txt b/test/JPP_TestUsecases.txt index 8bb3c24d..d9dd958a 100644 --- a/test/JPP_TestUsecases.txt +++ b/test/JPP_TestUsecases.txt @@ -593,9 +593,17 @@ Test JPP_1661 / NOT_EXISTING_PARAMETERS / BADCASE Description: JSON file with not existing parameters at several positions (12) Expectation: No values are returned, and JsonPreprocessor throws an exception ------------------------------------------------------------------------------------------------------------------------ +Test JPP_1700 / LINE_BREAKS / GOODCASE +Description: JSON file with and without line breaks inside expressions +Expectation: JsonPreprocessor returns expected value +------------------------------------------------------------------------------------------------------------------------ +Test JPP_1800 / SELF_ASSIGNMENTS / GOODCASE +Description: JSON file with self assignments of strings, lists and dictionaries +Expectation: JsonPreprocessor returns expected value +------------------------------------------------------------------------------------------------------------------------ Test JPP_1901 / ASSIGNMENTS_BY_REFERENCE / GOODCASE Description: JSON file with list assignments (by reference) Expectation: JsonPreprocessor returns expected value ------------------------------------------------------------------------------------------------------------------------ -Generated: 27.03.2024 - 11:21:23 +Generated: 03.04.2024 - 09:23:46 diff --git a/test/component_test.py b/test/component_test.py index 39056964..efa82851 100644 --- a/test/component_test.py +++ b/test/component_test.py @@ -22,8 +22,8 @@ # # -------------------------------------------------------------------------------------------------------------- # -VERSION = "0.39.0" -VERSION_DATE = "27.03.2024" +VERSION = "0.40.0" +VERSION_DATE = "03.04.2024" # # -------------------------------------------------------------------------------------------------------------- #TM*** diff --git a/test/pytest/pytestfiles/test_18_LINE_BREAKS_GOODCASE.py b/test/pytest/pytestfiles/test_18_LINE_BREAKS_GOODCASE.py new file mode 100644 index 00000000..641702a7 --- /dev/null +++ b/test/pytest/pytestfiles/test_18_LINE_BREAKS_GOODCASE.py @@ -0,0 +1,40 @@ +# ************************************************************************************************************** +# Copyright 2020-2023 Robert Bosch GmbH +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# -------------------------------------------------------------------------------------------------------------- +# +# test_18_LINE_BREAKS_GOODCASE.py +# +# XC-CT/ECA3-Queckenstedt +# +# 03.04.2024 - 09:23:46 +# +# -------------------------------------------------------------------------------------------------------------- + +import pytest +from pytestlibs.CExecute import CExecute + +# -------------------------------------------------------------------------------------------------------------- + +class Test_LINE_BREAKS_GOODCASE: + +# -------------------------------------------------------------------------------------------------------------- + # Expected: JsonPreprocessor returns expected value + @pytest.mark.parametrize( + "Description", ["JSON file with and without line breaks inside expressions",] + ) + def test_JPP_1700(self, Description): + nReturn = CExecute.Execute("JPP_1700") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- diff --git a/test/pytest/pytestfiles/test_19_SELF_ASSIGNMENTS_GOODCASE.py b/test/pytest/pytestfiles/test_19_SELF_ASSIGNMENTS_GOODCASE.py new file mode 100644 index 00000000..bb055be5 --- /dev/null +++ b/test/pytest/pytestfiles/test_19_SELF_ASSIGNMENTS_GOODCASE.py @@ -0,0 +1,40 @@ +# ************************************************************************************************************** +# Copyright 2020-2023 Robert Bosch GmbH +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# -------------------------------------------------------------------------------------------------------------- +# +# test_19_SELF_ASSIGNMENTS_GOODCASE.py +# +# XC-CT/ECA3-Queckenstedt +# +# 03.04.2024 - 09:23:46 +# +# -------------------------------------------------------------------------------------------------------------- + +import pytest +from pytestlibs.CExecute import CExecute + +# -------------------------------------------------------------------------------------------------------------- + +class Test_SELF_ASSIGNMENTS_GOODCASE: + +# -------------------------------------------------------------------------------------------------------------- + # Expected: JsonPreprocessor returns expected value + @pytest.mark.parametrize( + "Description", ["JSON file with self assignments of strings, lists and dictionaries",] + ) + def test_JPP_1800(self, Description): + nReturn = CExecute.Execute("JPP_1800") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- diff --git a/test/pytest/pytestfiles/test_18_ASSIGNMENTS_BY_REFERENCE_GOODCASE.py b/test/pytest/pytestfiles/test_20_ASSIGNMENTS_BY_REFERENCE_GOODCASE.py similarity index 95% rename from test/pytest/pytestfiles/test_18_ASSIGNMENTS_BY_REFERENCE_GOODCASE.py rename to test/pytest/pytestfiles/test_20_ASSIGNMENTS_BY_REFERENCE_GOODCASE.py index 75479c12..431723f9 100644 --- a/test/pytest/pytestfiles/test_18_ASSIGNMENTS_BY_REFERENCE_GOODCASE.py +++ b/test/pytest/pytestfiles/test_20_ASSIGNMENTS_BY_REFERENCE_GOODCASE.py @@ -14,11 +14,11 @@ # limitations under the License. # -------------------------------------------------------------------------------------------------------------- # -# test_18_ASSIGNMENTS_BY_REFERENCE_GOODCASE.py +# test_20_ASSIGNMENTS_BY_REFERENCE_GOODCASE.py # # XC-CT/ECA3-Queckenstedt # -# 27.03.2024 - 11:21:23 +# 03.04.2024 - 09:23:46 # # -------------------------------------------------------------------------------------------------------------- diff --git a/test/testconfig/TestConfig.py b/test/testconfig/TestConfig.py index e1272054..0a1bc53b 100644 --- a/test/testconfig/TestConfig.py +++ b/test/testconfig/TestConfig.py @@ -22,7 +22,7 @@ # # -------------------------------------------------------------------------------------------------------------- # -# 27.03.2024 +# 03.04.2024 # # !!! Temporarily tests are deactivated by the following line commented out: # # # listofdictUsecases.append(dictUsecase) @@ -3282,7 +3282,6 @@ del dictUsecase # -------------------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------------------- -# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/259 dictUsecase = {} dictUsecase['TESTID'] = "JPP_1700" dictUsecase['DESCRIPTION'] = "JSON file with and without line breaks inside expressions" @@ -3323,8 +3322,6 @@ del dictUsecase # -------------------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------------------- -# https://github.com/test-fullautomation/robotframework-testsuitesmanagement/issues/253 -# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/213 dictUsecase = {} dictUsecase['TESTID'] = "JPP_1800" dictUsecase['DESCRIPTION'] = "JSON file with self assignments of strings, lists and dictionaries" diff --git a/test/testfiles/jpp-test_config_1700.jsonp b/test/testfiles/jpp-test_config_1700.jsonp index 86454e6a..66261753 100644 --- a/test/testfiles/jpp-test_config_1700.jsonp +++ b/test/testfiles/jpp-test_config_1700.jsonp @@ -14,7 +14,6 @@ //************************************************************************** { - // https://github.com/test-fullautomation/python-jsonpreprocessor/issues/259 "dictParam1" : {"kA" : "A", "kB" : "B"}, "dictParam2" : {"kA" : "A", "kB" : "B"}, diff --git a/test/testfiles/jpp-test_config_1800.jsonp b/test/testfiles/jpp-test_config_1800.jsonp index 073536b1..0ebc73ed 100644 --- a/test/testfiles/jpp-test_config_1800.jsonp +++ b/test/testfiles/jpp-test_config_1800.jsonp @@ -14,9 +14,6 @@ //************************************************************************** { - // https://github.com/test-fullautomation/robotframework-testsuitesmanagement/issues/253 - // https://github.com/test-fullautomation/python-jsonpreprocessor/issues/213 - "param1" : "value", ${param1} : ${param1},