def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = PERSONAS
    context.execute_steps(u'''
        Given a browser
        And "John" as the persona
    ''')
Ejemplo n.º 2
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = PERSONAS
    # context.tips = TIPS       Communal code for posting tips
    context.execute_steps(u'''
       Given a browser
    ''')
def before_scenario(context, scenario):
    context.default_browser = "phantomjs"
    benv.before_scenario(context, scenario)
    context.personas = {
        'Frank' : dict(
            fullname = "Frank",
            email = "*****@*****.**",
            password = "******",
            username = "******"	
        ),
        'Mary' : dict(
            fullname = "Mary",
            email = "*****@*****.**",
            password = "******",
            username = "******"
        )
    }
    context.step_counter = 0
Ejemplo n.º 4
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = PERSONAS
Ejemplo n.º 5
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    # Always use remote browser.
    named_browser(context, 'remote')
    # Set personas.
    context.personas = PERSONAS
Ejemplo n.º 6
0
def before_scenario(context, scenario):
    if 'persist_browser' not in scenario.tags:
        benv.before_scenario(context, scenario)
Ejemplo n.º 7
0
def before_scenario(context, scenario):
    behaving_env.before_scenario(context, scenario)
    context.cleanup_tasks = []
Ejemplo n.º 8
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
Ejemplo n.º 9
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = ensure_personas()
Ejemplo n.º 10
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)

    pickle_file = "src/mist/io/tests/features/persona.pickle"
    PERSONAS = pickle.load(open(pickle_file, "rb"))
    context.personas = PERSONAS
Ejemplo n.º 11
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
Ejemplo n.º 12
0
def before_scenario(context, scenario):
    behaving_env.before_scenario(context, scenario)
Ejemplo n.º 13
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = PERSONAS
Ejemplo n.º 14
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = ensure_personas()
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = PERSONAS
    context.execute_steps(u'''
        Given a browser
    ''')