Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.93 KB

python_qc_framework.md

File metadata and controls

57 lines (37 loc) · 1.93 KB

Framework module

The Framework module is responsible for the execution of checker bundles, result poolers and result reporters, based upon a defined configuration file. The main executable is implemented in the runtime submodule.

Input configuration file need to respect the config xsd schema

The runtime module execute the following steps:

  1. Validate input xml file given the schema
  2. For each checker bundle specified in configuration, execute its process
  3. Execute result pooling for collect results from all checker bundle executed in step 2
  4. For each report module specified in configuration, execute its process

Installation & Usage

The ASAM QC Framework can be installed using pip.

From PyPi

pip install asam-qc-framework

From GitHub Repository

pip install asam-qc-framework@git+https://github.com/asam-ev/qc-framework@main#subdirectory=qc_framework

The above command will install asam-qc-framework from the main branch. If you want to install asam-qc-framework from another branch or tag, replace @main with the desired branch or tag.

From a local repository

# From reporsitory root
pip install ./qc_framework

Then, it can be executed as follows.

qc_runtime --config=$PATH_TO_CONFIG_FILE --manifest=$PATH_TO_MANIFEST_FILE

where

All the files generated during the runtime execution, including result files and report files, will be saved in the output folder qc-output-YYYY-MM-DD-HH-MM-SS-*.

Alternatively, users can specify a specific output folder for the runtime using the argument --working_dir.

qc_runtime --config=$PATH_TO_CONFIG_FILE --manifest=$PATH_TO_MANIFEST_FILE --working_dir=$PATH_TO_OUTPUT_FOLDER