def before_feature(context, feature):
    """Feature initialization

    :param context: behave context
    :param feature: running feature
    """
    context.global_status = {'test_passed': True}

    # Read @no_driver tag
    no_driver = 'no_driver' in feature.tags

    # Start driver if it should be reused in feature
    context.reuse_driver_from_tags = 'reuse_driver' in feature.tags
    if context.toolium_config.getboolean_optional('Driver', 'reuse_driver') or context.reuse_driver_from_tags:
        start_driver(context, no_driver)

    # Behave dynamic environment
    context.dyn_env.get_steps_from_feature_description(feature.description)
    context.dyn_env.execute_before_feature_steps(context)
def before_feature ( context , feature ) : context . global_status = { 'test_passed' : True } no_driver = 'no_driver' in feature . tags context . reuse_driver_from_tags = 'reuse_driver' in feature . tags if context . toolium_config . getboolean_optional ( 'Driver' , 'reuse_driver' ) or context . reuse_driver_from_tags : start_driver ( context , no_driver ) context . dyn_env . get_steps_from_feature_description ( feature . description ) context . dyn_env . execute_before_feature_steps ( context )
Feature initialization

    :param context: behave context
    :param feature: running feature