Closed HolQue closed 8 months ago
Addendum:
It's so much cool. Only six more lines of code in CJsonPreprocessor.py:
from JsonPreprocessor.version import VERSION
from JsonPreprocessor.version import VERSION_DATE
def get_version(self):
return VERSION
def get_version_date(self):
return VERSION_DATE
would allow the self test to access and provide these informations. It would be great if you add these two methods soon.
This is the outcome in self test (SUT_FULL_NAME
):
THISSCRIPT : D:/ROBFW/components/python-jsonpreprocessor/test/component_test.py
THISSCRIPTNAME : component_test.py
REFERENCEPATH : D:/ROBFW/components/python-jsonpreprocessor/test
TESTCONFIGPATH : D:/ROBFW/components/python-jsonpreprocessor/test/testconfig
OSNAME : nt
PLATFORMSYSTEM : Windows
PYTHON : D:/RobotFramework/python39/python.exe
PYTHONPATH : D:/RobotFramework/python39
PYTHONVERSION : 3.9.16 (main, Dec 21 2022, 04:16:27) [MSC v.1929 64 bit (AMD64)]
TESTID : JPP_0501
CODEDUMP : False
CONFIGDUMP : False
RECREATEINSTANCE : False
TESTLOGFILESFOLDER : D:/ROBFW/components/python-jsonpreprocessor/test/testlogfiles
SELFTESTLOGFILE : D:/ROBFW/components/python-jsonpreprocessor/test/testlogfiles/JPP_SelfTest.log
VERSION : 0.1.0
VERSION_DATE : 03.08.2023
THISSCRIPTFULLNAME : component_test.py v. 0.1.0 / 03.08.2023
SUT_FULL_NAME : JsonPreprocessor v. 0.2.5 / 13.06.2023
With these two informations nearby in the self test log files:
THISSCRIPTFULLNAME : component_test.py v. 0.1.0 / 03.08.2023
SUT_FULL_NAME : JsonPreprocessor v. 0.2.5 / 13.06.2023
it will be possible to reproduce every issue easily.
@namsonx : What is the status of this issue?
Hello Holger,
I have just added getVersion() and getVersionDate() methods to JPP package via commit f144270f6aacb on stabi branch.
Thank you, Son
merged to develop branch
Feature works like expected. Issue can be closed.
solved with version 0.10.0
To make the testing and the documentation of the testing (test log files) more transparent, if would be helpful to have the possibility to ask the JsonPreprocessor for the version and date:
It would also be possible to use the version for a version control (between test and JsonPreprocessor).