2023-01-25 12:16:58 +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/"))
|
|
|
|
|
|
|
|
import steps.commonInitSteps as init_steps
|
|
|
|
|
|
|
|
# Global properties for the specific feature
|
|
|
|
_user = "tester123"
|
|
|
|
_password = "TesTEr16843/!@00"
|
|
|
|
|
|
|
|
@OnFeatureStart
|
|
|
|
def hook(context):
|
|
|
|
init_steps.context_init(context, testSettings)
|
|
|
|
init_steps.signs_up_process_steps(context, _user, _password)
|
|
|
|
|
|
|
|
@OnFeatureEnd
|
|
|
|
def hook(context):
|
2023-06-02 14:34:09 +00:00
|
|
|
init_steps.driver.detach()
|
2023-01-25 12:16:58 +00:00
|
|
|
|
|
|
|
@OnStepEnd
|
|
|
|
def hook(context):
|
|
|
|
context.userData["step_name"] = context._data["text"]
|