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
    ''')
예제 #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
예제 #4
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = PERSONAS
예제 #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
예제 #6
0
def before_scenario(context, scenario):
    if 'persist_browser' not in scenario.tags:
        benv.before_scenario(context, scenario)
예제 #7
0
def before_scenario(context, scenario):
    behaving_env.before_scenario(context, scenario)
    context.cleanup_tasks = []
예제 #8
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
예제 #9
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = ensure_personas()
예제 #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
예제 #11
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
예제 #12
0
def before_scenario(context, scenario):
    behaving_env.before_scenario(context, scenario)
예제 #13
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = PERSONAS
예제 #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
    ''')