mp_auxiliary

Multiprocessing based Auxiliary Interface

module

mp_auxiliary

synopsis

common multiprocessing based auxiliary interface

class pykiso.interfaces.mp_auxiliary.MpAuxiliaryInterface(name=None, is_proxy_capable=False, activate_log=None)[source]

Defines the interface of all multiprocessing based auxiliaries.

Auxiliaries get configured by the Test Coordinator, get instantiated by the TestCases and in turn use Connectors.

Auxiliary initialization.

Parameters
  • name (Optional[str]) – alias of the auxiliary instance

  • is_proxy_capable (bool) – notify if the current auxiliary could be (or not) associated to a proxy-auxiliary.

  • activate_log (Optional[List[str]]) – loggers to deactivate

create_instance()[source]

Create an auxiliary instance and ensure the communication to it.

Return type

bool

Returns

verdict on instance creation, True if everything was fine otherwise False

Raises

AuxiliaryCreationError – if instance creation failed

delete_instance()[source]

Delete an auxiliary instance and its communication to it.

Return type

bool

Returns

verdict on instance deletion, False if everything was fine otherwise True(instance was not deleted correctly)

initialize_loggers()[source]

Initialize the logging mechanism for the current process.

Return type

None

run()[source]

Run function of the auxiliary process.

Return type

None