The record auxiliary can be used to utilize the logging mechanism from a connector. For example the realtime trace from the segger jlink can be recorded during a test run. The record auxiliary can also be used to save the log into a chosen file. It is also able to search for some specific message or regular expression (regex) into the current string or into a specified file/folder.
To use the auxiliary in your test scripts the auxiliary must be properly defined in the config yaml. Example:
../../examples/record_rtt_segger.yaml
../../examples/record_example.yaml
Below find a example for the usage in a test script. It is only necessary to import record auxiliary.
from pykiso.auxiliaries import record_aux
Example test script:
../../examples/test_record/test_record_rtt_segger.py
../../examples/test_record/test_recorder_example.py