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
    ''')
コード例 #3
0
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
ファイル: environment.py プロジェクト: qdamian/depict
def before_scenario(context, scenario):
    behaving_env.before_scenario(context, scenario)
    context.cleanup_tasks = []
コード例 #8
0
ファイル: environment.py プロジェクト: ilonajulczuk/tubylcy
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
コード例 #9
0
ファイル: environment.py プロジェクト: tanakanakanaka/beavy
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = ensure_personas()
コード例 #10
0
ファイル: environment.py プロジェクト: prodigeni/mist.io
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
ファイル: environment.py プロジェクト: qdamian/depict
def before_scenario(context, scenario):
    behaving_env.before_scenario(context, scenario)
コード例 #13
0
ファイル: environment.py プロジェクト: robax/operation-sanity
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = PERSONAS
コード例 #14
0
ファイル: environment.py プロジェクト: beavyHQ/beavy
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = ensure_personas()
コード例 #15
0
def before_scenario(context, scenario):
    benv.before_scenario(context, scenario)
    context.personas = PERSONAS
    context.execute_steps(u'''
        Given a browser
    ''')