This module will help you determine if your AUTOSAR project is properly configured by comparing the parameters in the configuration with the parameters specified in the requirements coming from a requirement management system.
Adapt it for your project if necessary and use it in CI as a verification method for AUTOSAR code configuration for 3rd party code.
It will print the analysis logs in the console. No logger is required/implemented for the moment.
The result of the analysis is stored by default in the out directory. To use this module, please make sure your input is similar to the one provided as a sample in the input directory.
Update your requirements management system by importing new_report.xlsx back into the system.
Use the requirements.txt file to install a virtual environment and then activate it.
# Create a python virtual environment
python -m venv ./venv
# Activate the venv (depends on os)
Windows:
venv/Source/activate
Macos:
source venv/bin/activate
# Install the requirements
python -m pip install -r requirements.txt
# Execute the sample test
python parameters_checker.py --config-location input --input input/input_req.xlsx
graph TD
REQUIREMENTS_EXCEL[Requirements Excel]
ARXML_FILES[Arxml Files]
PARAMETERS_CHECKER[parameters_checker.py]
REPORT_MD[REPORT.MD]
UPDATED_REQUIREMENTS_EXCEL[new_report.xlsx]
REQUIREMENTS_EXCEL-->|input|PARAMETERS_CHECKER
ARXML_FILES-->|input|PARAMETERS_CHECKER
PARAMETERS_CHECKER-->|output|REPORT_MD
PARAMETERS_CHECKER-->|output|UPDATED_REQUIREMENTS_EXCEL