2022-03-29 08:30:38 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2022-08-19 15:23:09 +00:00
|
|
|
# This file contains hook functions to run as the .feature file is executed
|
2022-03-29 08:30:38 +00:00
|
|
|
|
2022-08-19 15:23:09 +00:00
|
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../testSuites/global_shared/"))
|
2022-07-13 13:14:52 +00:00
|
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../src/"))
|
2022-05-26 00:28:49 +00:00
|
|
|
|
2022-10-25 12:44:28 +00:00
|
|
|
from steps.startupSteps import context_init
|
2022-03-29 08:30:38 +00:00
|
|
|
|
|
|
|
@OnScenarioStart
|
|
|
|
def hook(context):
|
2022-10-13 16:03:10 +00:00
|
|
|
context_init(context)
|
2022-08-19 14:57:09 +00:00
|
|
|
|
2022-03-29 08:30:38 +00:00
|
|
|
@OnScenarioEnd
|
|
|
|
def hook(context):
|
|
|
|
currentApplicationContext().detach()
|
2022-07-20 12:14:50 +00:00
|
|
|
snooze(_app_closure_timeout)
|
2022-03-29 08:30:38 +00:00
|
|
|
|
2022-08-31 10:55:42 +00:00
|
|
|
@OnStepEnd
|
|
|
|
def hook(context):
|
|
|
|
context.userData["step_name"] = context._data["text"]
|