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