2022-11-16 13:06:37 +01: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 13:56:06 +01:00
|
|
|
import steps.commonInitSteps as init_steps
|
2022-11-16 13:06:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
@OnFeatureStart
|
|
|
|
def hook(context):
|
2022-11-21 14:41:34 +01:00
|
|
|
init_steps.context_init(context, testSettings)
|
2023-05-30 12:24:04 +02:00
|
|
|
context.userData['aut'] = []
|
2022-11-16 13:06:37 +01:00
|
|
|
|
2023-05-03 18:23:12 +02:00
|
|
|
@OnScenarioEnd
|
2022-11-16 13:06:37 +01:00
|
|
|
def hook(context):
|
2023-06-02 16:34:09 +02:00
|
|
|
init_steps.driver.detach()
|
2022-11-16 13:06:37 +01:00
|
|
|
|
|
|
|
@OnStepEnd
|
|
|
|
def hook(context):
|
|
|
|
context.userData["step_name"] = context._data["text"]
|