Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
e57d547
Self test maintenance
HolQue Apr 8, 2024
56d6ffa
Merge branch 'namsonx/task/stabi_branch' into HolQue/task/selftest_ma…
HolQue Apr 8, 2024
b06954f
Merge branch 'namsonx/task/stabi_branch' into HolQue/task/selftest_ma…
HolQue Apr 8, 2024
099a36d
Merge remote-tracking branch 'origin/namsonx/task/stabi_branch' into …
HolQue Apr 9, 2024
8d5b8e5
Loading jsonp content improvement
namsonx Apr 10, 2024
e3c516f
Merge pull request #280 from test-fullautomation/namsonx/maintenance/…
namsonx Apr 10, 2024
9bf94c3
Merge pull request #273 from test-fullautomation/HolQue/task/selftest…
test-fullautomation Apr 10, 2024
c3afb99
Merge branch 'develop' into HolQue/task/selftest_maintenance
HolQue Apr 10, 2024
e3280ff
Merge branch 'namsonx/task/stabi_branch' into HolQue/task/selftest_ma…
HolQue Apr 10, 2024
13b0d73
Extended debugging support.
HolQue Apr 10, 2024
4b61e39
Fixed choice of words.
HolQue Apr 10, 2024
c3955b6
Fixed choice of words.
HolQue Apr 10, 2024
58b23c3
Move get_failed_json_doc function to CJsonPreprocessor class
namsonx Apr 11, 2024
d27eab9
Merge pull request #281 from test-fullautomation/HolQue/task/selftest…
test-fullautomation Apr 11, 2024
ba1003b
Fix bug 282 - Tiny change related to performance issues.
namsonx Apr 11, 2024
00f0007
Small change to visualize position of JSON format failure
namsonx Apr 11, 2024
64451b0
tiny typo
HolQue Apr 11, 2024
0c038df
Merge pull request #284 from test-fullautomation/HolQue/task/selftest…
test-fullautomation Apr 11, 2024
a0adef6
Tiny change for get failed Json doc feature
namsonx Apr 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
295 changes: 119 additions & 176 deletions JsonPreprocessor/CJsonPreprocessor.py

Large diffs are not rendered by default.

Binary file modified JsonPreprocessor/JsonPreprocessor.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions JsonPreprocessor/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
#
# Version and date of JsonPreprocessor
#
VERSION = "0.4.0"
VERSION_DATE = "15.03.2024"
VERSION = "0.5.0"
VERSION_DATE = "10.04.2024"

15 changes: 12 additions & 3 deletions config/robotframework_aio/release_items_JsonPreprocessor.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
* Improved index handling together with nested parameters
* Self test extended by further test cases

All JsonPreprocessor test cases: `JPP_TestUsecases.html <https://htmlpreview.github.io/?https://github.com/test-fullautomation/python-jsonpreprocessor/blob/develop/test/JPP_TestUsecases.html>`_
All **JsonPreprocessor** test cases: `JPP_TestUsecases.html <https://htmlpreview.github.io/?https://github.com/test-fullautomation/python-jsonpreprocessor/blob/develop/test/JPP_TestUsecases.html>`_
"
]
,
Expand Down Expand Up @@ -90,9 +90,18 @@

Finally, the value of ``var1`` is 2 and the value of ``var2`` is 3.

* Self test extended by further test cases
* Self test extended by further test cases.

Overview about **JsonPreprocessor** test cases: `JPP_TestUsecases.html <https://htmlpreview.github.io/?https://github.com/test-fullautomation/python-jsonpreprocessor/blob/develop/test/JPP_TestUsecases.html>`_

* Extended debugging support:

In case of JSON syntax errors, the **JsonPreprocessor** exception contains an extract of the JSON content nearby the position, where the error occurred.
Line breaks in JSON content are replaced by '``\\n``'.

| ``'Expecting ',' delimiter: line 3 column 4 (char 43)``
| ``Nearby: '... \u007b\\n \"dict_param\" : \u007b\"A\" : 1 , \"B\" : 2\u007d\\n \"list_param\" : [\"A\", ...'``

All JsonPreprocessor test cases: `JPP_TestUsecases.html <https://htmlpreview.github.io/?https://github.com/test-fullautomation/python-jsonpreprocessor/blob/develop/test/JPP_TestUsecases.html>`_
"
]
}
Expand Down
3 changes: 3 additions & 0 deletions packagedoc/additional_docs/History.tex
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,7 @@
- Optimized errors handling while loading nested parameters\newline
- Fixed bugs}

\historyversiondate{0.5.0}{04/2024}
\historychange{Extended debugging support. In case of JSON syntax errors, the JsonPreprocessor exception contains an extract of the JSON content nearby the position, where the error occurred.}

\end{packagehistory}
5 changes: 4 additions & 1 deletion test/JPP_TestUsecases.csv
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ JPP_0500|COMPOSITE_EXPRESSIONS|GOODCASE|JSON file with composite data structure
JPP_0501|COMPOSITE_EXPRESSIONS|GOODCASE|JSON file with composite data structure (nested lists and dictionaries 2)
JPP_0502|COMPOSITE_EXPRESSIONS|GOODCASE|JSON file with composite data structure (nested lists and dictionaries 3 / some key names with dots inside)
JPP_0503|COMPOSITE_EXPRESSIONS|GOODCASE|JSON file with composite data structure (some lists)
JPP_0504|COMPOSITE_EXPRESSIONS|GOODCASE|JSON file with composite data structure (some dictionaries)
JPP_0505|COMPOSITE_EXPRESSIONS|GOODCASE|JSON file with composite strings containing several times a colon and a comma (JSON syntax elements)
JPP_0506|COMPOSITE_EXPRESSIONS|GOODCASE|JSON file with composite strings containing several combinations of curly brackets and special characters before
JPP_0507|COMPOSITE_EXPRESSIONS|GOODCASE|JSON file containing several string concatenations in separate lines (1)
Expand Down Expand Up @@ -125,7 +126,8 @@ JPP_1362|BLOCKED_SLICING|BADCASE|JSON file with blocked slicing notation (0:${ne
JPP_1363|BLOCKED_SLICING|BADCASE|JSON file with blocked slicing notation (left hand side of colon)
JPP_1364|BLOCKED_SLICING|BADCASE|JSON file with blocked slicing notation (left hand side of colon)
JPP_1365|BLOCKED_SLICING|BADCASE|JSON file with blocked slicing notation (combinations with negative integer parameter)
JPP_1500|STRING_INDICES|GOODCASE|JSON file with indices applied to a string (inside lists and inside dictionaries)
JPP_1500|STRING_INDICES|GOODCASE|JSON file with indices applied to a string (inside lists and inside dictionaries; standard notation)
JPP_1501|STRING_INDICES|GOODCASE|JSON file with indices applied to a string (inside lists and inside dictionaries; dotdict notation)
JPP_1650|NOT_EXISTING_PARAMETERS|BADCASE|JSON file with not existing parameters at several positions (1)
JPP_1651|NOT_EXISTING_PARAMETERS|BADCASE|JSON file with not existing parameters at several positions (2)
JPP_1652|NOT_EXISTING_PARAMETERS|BADCASE|JSON file with not existing parameters at several positions (3)
Expand All @@ -138,4 +140,5 @@ JPP_1660|NOT_EXISTING_PARAMETERS|BADCASE|JSON file with not existing parameters
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_1900|ASSIGNMENTS_BY_REFERENCE|GOODCASE|JSON file with dictionary assignments (by reference)
JPP_1901|ASSIGNMENTS_BY_REFERENCE|GOODCASE|JSON file with list assignments (by reference)
Loading