Open HolQue opened 1 year ago
The same with other keys.
"bundle_version_invalid" : "0.8.0.0",
causes a wrong version (the one from testsuites management) used for version check:
The test execution requires maximum RobotFramework AIO version '0.2.0'
but the installed RobotFramework AIO version is younger '0.7.1'
@namsonx : What is the status of this issue?
Hello @ngoan1608, can you update the status of this ticket?
solved and already merged with #220
Retest result:
Every invalid key causes a corresponding error message now. OK.
But missing keys are not considered.
Usecase:
In my opinion the file package_context.json should also be checked for completeness.
The behavior changed (probably caused by 0.13.1 changes).
In case of an invalid "installer_location"
key, a lot of stuff is written to console:
[ ERROR ] Invalid '... \site-packages\RobotFramework_TestsuitesManagement\Config\package_context.json' file. Reason: Additional properties are not allowed ('installer_location_invalid' was unexpected)
Failed validating 'additionalProperties' in schema:
{'type': 'object',
'additionalProperties': False,
'properties': {'installer_location': {'type': 'string'},
'bundle_name': {'type': 'string'},
'bundle_version': {'type': 'string'},
'bundle_version_date': {'type': 'string'}}}
On instance:
{'installer_location_invalid': 'https://github.com/test-fullautomation/RobotFramework_AIO/releases',
'bundle_name': 'RobotFramework AIO extended',
'bundle_version': '0.13.1.6',
'bundle_version_date': '11.2024'}
[ ERROR ] Execution stopped by user.
------------------------------
RF returned ERRORLEVEL : 253
And the debug log file is mostly empty:
20241120 18:43:34.420 - INFO - + START SUITE: RobotFramework [ ]
See also: https://github.com/test-fullautomation/robotframework-testsuitesmanagement/issues/302
Hi @namsonx , this bundle version control is one of our main features. Therefore this is Prio1 for 0.13.1. Please check. Thank you, Thomas
https://github.com/test-fullautomation/robotframework-testsuitesmanagement/issues/191#issuecomment-2489215231 solved in between.
No, I have to correct myself: not solved. By mistake I tested with standard JSONP configuration file. But this issue is about the package_context.json file. Now I faced: The behavior of this file completely different.
Test ongoing.
Restest with package_context.json / extended version / level INFO
"installer_location_invalid" : "https://github.com/test-fullautomation/RobotFramework_AIO/releases",
Console:
[ ERROR ] Invalid '... \Config\package_context.json' file. Reason: Additional properties are not allowed ('installer_location_invalid' was unexpected)
(and additional details)
Debug log file:
completely empty
Console:
[ ERROR ] Cannot load the '... \Config\package_context.json' file. Reason: Expecting ',' delimiter: line 3 column 3 (char 98)
[ ERROR ] Execution stopped by user.
Debug log file:
completely empty
"installer_location"
removed)Is ignored (maybe because of this information is not used because the version check is passed). Test is passed.
"installer_location"
removed) together with failed version check[ ERROR ] Wrong use of max/min version control in configuration.
Testsuite : C:\workplace\ROBFW\TestTestcases\RobotFramework\quicktest.robot
config : C:/workplace/ROBFW/TestTestcases/RobotFramework/config/testconfig.json
The configured minimum RobotFramework AIO extended version '1.6.0'
is younger than the configured maximum RobotFramework AIO extended version '1.0.0'
Please correct the values of 'Maximum_version', 'Minimum_version' in config file
Please install the required RobotFramework AIO extended version.
You can find an installer here: https://github.com/test-fullautomation/robotframework-testsuitesmanagement/releases
QuickTest :: QuickTest documentation | UNKNOWN |
The provided installer location is wrong (belongs to component, but not to bundle). Therefore It's better to check package_context.json for completeness at first.
"bundle_name"
removed) together with failed version checkSame issue as in item before:
Please install the required RobotFramework_TestsuitesManagement version.
You can find an installer here: https://github.com/test-fullautomation/RobotFramework_AIO/releases
Bundle name does not fit to installer path.
In package_context.json I made a key invalid:
Outcome is an inconsistent error message:
The content of package_context.json should be checked more strict.