Test Feature Diag Handler Module

class mtf.test_features_sim.test_feature_diag_handler.TestFeatureDiagHandler

A class for handling diagnostic features in the context of Test Features.

This class provides methods to send diagnostic payloads and interpret their responses. It also facilitates the configuration of Test Features for sending and receiving response diagnostic jobs.

Attributes:

test_features_pack (mtf_test_features_controller): An instance of the MTF Test Features Controller. diag_manager (DiagManagerWrapper): An instance of the Diagnostic Manager Wrapper for managing diagnostics.

__init__(diag_manager: DiagManagerWrapper)

Initializes the TestFeatureDiagHandler.

Creates an instance of the TestFeatureDiagHandler with a Test Sim Pack.

Args:

diag_manager (DiagManagerWrapper): An instance of the Diagnostic Manager Wrapper.

set_test_feature_send_diag()

Configure the Test Feature to enable sending diagnostic jobs.

This method sets up the Test Feature to allow the Test Feature project to send diagnostic jobs. It associates the ‘send_diag’ and ‘send_diag_interpret_response’ methods with the corresponding Test Feature functions.

unset_test_feature_send_diag()

Clean up the Test Feature configuration for sending diagnostic jobs.

This method cleans up the Test Feature configuration related to sending diagnostic jobs. It disconnects the ‘send_diag’ and ‘send_diag_interpret_response’ methods from the corresponding Test Feature functions.