test-fullautomation / python-jsonpreprocessor

A preprocessor for json files
Apache License 2.0
2 stars 2 forks source link

documentation of stand-alone usage (with python) missing #32

Closed HolQue closed 9 months ago

HolQue commented 1 year ago

I have a question: We explain that the RobotFramework_Testsuites needs to be imported in robot tests in the following way:

Library RobotFramework_Testsuites WITH NAME testsuites

We explain that the RobotFramework_Testsuites works together with the JsonPreprocessor. But I cannot find any hint about what to do to import the JsonPreprocessor also. And the reason most probably is that this is already done by the RobotFramework_Testsuites. And when the RobotFramework_Testsuites does all the necessary things with the JsonPreprocessor, then there is nothing else to do for the users. The JsonPreprocessor is hidden.

But the JsonPreprocessor is also a component available in PyPi separately. Therefore it must be possible to use the JsonPreprocessor without the RobotFramework_Testsuites. And the consequence is that the user needs to know how to enable the JsonPreprocessor in his own Python code. In the documentation I only find informations about how to install and informations about the JSON files. But what is missing is a full pure Python code example that demonstrates how to use the JsonPreprocessor in own Python code.

test-fullautomation commented 1 year ago

Jsonpreprocessor should not be mentioned in RobotFramework_TestsuitesManagement documentation. I was already unhappy about this. This is a dependency package for RobotFramework_TestsuitesManagement which is provided pypi and transparently used by the user of RobotFramework_TestsuitesManagement.

When this answer is enough for you, then please close the issue.

HolQue commented 1 year ago

Hi Thomas,

OK, I will remove the mentioned "JsonPreprocessor" from test suites tutorial.

But what is still open is the second part of my question.

test-fullautomation commented 1 year ago

Hi Son, what is the status here? Thank you, Thomas

namsonx commented 1 year ago

Hello Thomas and Holger,

The python-jsonpreprocessor has to become the dependency package of robotframework-testsuitesmanagement package, because the code of our testsuitesmanagement imports JsonPreprocessor. So, installing testsuitesmanagement process has to manage python-jsonpreprocessor as the dependency.

Only python-jsonpreprocessor itself can work stand-alone.

Thank you, Son

test-fullautomation commented 1 year ago

Hi Son, here are some misunderstandings...

What is missing is a documentation for json-preprocessor which explains how to use it with python with corresponding python code samples in addition to the already existing json samples.

Please extend this for version 0.8.0.

Thank you, Thomas

test-fullautomation commented 1 year ago

Hi Holger, please take this over. Thank you, Thomas

HolQue commented 11 months ago

Done with https://github.com/test-fullautomation/python-jsonpreprocessor/pull/90