testbuilder/core/base/baseinterface.py
def dispatch(self, step_context):
        """Attempts to dispatch a action to the interface
        
        Arguments:
            step_context {StepContext} -- The current step context
        
        Raises:
            ImproperlyConfigured -- Raised if interface does not define the action specified by `step_context.step_action`
        """

        action = step_context.step_action
        defined_action_words = self.get_list_of_action_words()

        if action in defined_action_words:
            try:
                getattr(self, action)(step_context) # Run step
                self._pass_step(step_context) # Mark step as passed
            except Exception as e:
                self._fail_step(step_context, e) # Mark step as failed
                raise
        else:
            raise ImproperlyConfigured(f"Interface does not have a defined action {action}")
Attempts to dispatch a action to the interface
        
        Arguments:
            step_context {StepContext} -- The current step context
        
        Raises:
            ImproperlyConfigured -- Raised if interface does not define the action specified by `step_context.step_action`
        
Attempts to dispatch a action to the interface
Arguments:
step_context {StepContext} -- The current step context

- Raised if interface does not define the action specified by `step_context.step_action`
Attempts to dispatch a action to the interface Arguments : step_context { StepContext } -- The current step context - Raised if interface does not define the action specified by ` step_context . step_action `
def dispatch(self, step_context):
        action = step_context.step_action
        defined_action_words = self.get_list_of_action_words()
        if action in defined_action_words:
            try:
                getattr(self, action)(step_context) 
                self._pass_step(step_context) 
            except Exception as e:
                self._fail_step(step_context, e) 
                raise
        else:
            raise ImproperlyConfigured(f"Interface does not have a defined action {action}")
def dispatch ( self , step_context ) : action = step_context . step_action defined_action_words = self . get_list_of_action_words ( ) if action in defined_action_words : try : getattr ( self , action ) ( step_context ) self . _pass_step ( step_context ) except Exception as e : self . _fail_step ( step_context , e ) raise else : raise ImproperlyConfigured ( f"Interface does not have a defined action {action}" )
Attempts to dispatch a action to the interface
Arguments:
step_context {StepContext} -- The current step context
Attempts to dispatch a action to the interface Arguments : step_context { StepContext } -- The current step context
"""Attempts to dispatch a action to the interface
        
        Arguments:
            step_context {StepContext} -- The current step context
        
        Raises:
            ImproperlyConfigured -- Raised if interface does not define the action specified by `step_context.step_action`
        """ # Run step # Mark step as passed # Mark step as failed
self
step_context