2022-10-21 07:17:48 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# This file contains hook functions to run as the .feature file is executed
|
|
|
|
|
|
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../testSuites/global_shared/"))
|
|
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../src/"))
|
2022-11-21 12:56:06 +00:00
|
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), "../shared/steps/"))
|
2022-10-21 07:17:48 +00:00
|
|
|
|
2022-11-21 13:41:34 +00:00
|
|
|
import steps.commonInitSteps as init_steps
|
2022-11-21 12:56:06 +00:00
|
|
|
import walletInitSteps as wallet_init_steps
|
2022-10-21 07:17:48 +00:00
|
|
|
|
|
|
|
# Global properties for the specific feature
|
|
|
|
_user = "tester123"
|
|
|
|
_password = "qqqqqqqqqq"
|
|
|
|
_seed_phrase = "pelican chief sudden oval media rare swamp elephant lawsuit wheat knife initial"
|
|
|
|
|
|
|
|
@OnFeatureStart
|
|
|
|
def hook(context):
|
2022-11-21 13:41:34 +00:00
|
|
|
init_steps.context_init(context, testSettings)
|
|
|
|
init_steps.signs_up_with_seed_phrase_process_steps(context, _seed_phrase, _user, _password)
|
2022-10-20 12:58:56 +00:00
|
|
|
wallet_init_steps.activate_and_open_wallet()
|
2022-10-21 07:17:48 +00:00
|
|
|
|
|
|
|
@OnFeatureEnd
|
|
|
|
def hook(context):
|
|
|
|
currentApplicationContext().detach()
|
|
|
|
snooze(_app_closure_timeout)
|
|
|
|
|
|
|
|
@OnStepEnd
|
|
|
|
def hook(context):
|
|
|
|
context.userData["step_name"] = context._data["text"]
|