-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namsonx/task/stabi branch #238
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @namsonx ,
thank you for your pull-request.
Can you please also update release_info file from enduser perspective.
Like this and that is working now with short example...
Thank you,
Thomas
…HolQue/task/selftest_maintenance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Son,
I do not understand this. In
test-fullautomation/robotframework-testsuitesmanagement#251
I asked a question. The question is not answered. The behavior of the JsonPreprocessor w.r.t. 251 is the same like before.
What is the status now?
Hello Holger, Sorry for the confusion, this is my mistake, this pull-request is not related to your question in TSM ticket 251. Thank you, |
…HolQue/task/selftest_maintenance
…_maintenance Self test maintenance
(square brackets within strings) and maintenance
…_maintenance Added self test case JPP_0103 (square brackets within strings)
Hi @namsonx , |
Self test: added JPP_0268 and JPP_0269 (topic: ${} substitution within strings; tests commented out)
…_maintenance Self test extensions
Hi Son, the wording needs to be adapted: Not: Not: (no need to mention 'currently', because then customers will assume that slicing might be available in near future already) Not: But nevertheless: This expression itself is not really invalid. It's a data type issue: List indices are expected to be positive integers, and not strings. Later this should be reworked. 02.04.2024 |
Hello Holger, Thank you for your review, I updated error messages as your suggestion |
…HolQue/task/selftest_maintenance
Update of code snippet generator
Hi Son, a tiny wish only: Please remove the part "Please update the expression" from following error message:
In case of an error, it is obvious that the user has to do something to avoid this error. There is no need to mention this explicitly. Otherwise you would have to add such a statement to every error message. Let's keep it short:
|
(currently commented out: JPP_1654, JPP_1656, JPP_1662, JPP_1663, JPP_1664) Update of code snippet generator
(line breaks within expressions; currently commented out) Update of code snippet generator
(JPP_1900 commented out)
(spaces and line break snippets, linked table of content)
…_maintenance Added self test JPP_1400 (nested lists error)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Son,
this error message is rather long winded (three times 'must'; this is too much):
Invalid key name detected: '"par\\am"'. Key names in JSON objects must adhere to the following rules: they must be strings enclosed in double quotes, must not contain control characters.
It is s good idea to give a recommendation how to solve the error, but it is also very difficult in my opinion, to compress the entire JSON naming convention to one single and short sentence.
I made a cross check with the original JSON interface. This interface throws errors like that:
Invalid \escape: line ...
Invalid control character at: line ...
This gives enough information to enable users to find the error.
Therefore I suggest to pass the identified expression at first directly to the Python JSON interface (json.loads(...)
) and let this interface do the naming convention check. JsonPreprocessor specific checks may follow.
Finally an error message can be like this:
Invalid control character at: line ... Key name is invalid: '"par\\am"'
(like I already mentioned in an email: at first the error itself, at second the consequence)
The naming convention check is mentioned in the history of the TestsuitesManagement, but not in the history of the JsonPreprocessor - and should be added there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Son,
looks good to me!
Thank you,
Thomas
Hello Thomas, Hello Holger,
I create this pull-request to remove globals scope out of all exec() executions as you mentioned before to avoid some risks may be appear in future.
I defined
self.JPGlobals = {}
in the__init__
ofCJsonPreprocessor
to manage root parameters in json files.Thank you,
Son