c# - How to share data between SpecFlow beforetestrun and aftertestrun hooks? -
we have scenariocontext , featurecontext share data between scenarios , features there way share data between beforetestrun , aftertestrun?
i trying kill open browser processes @ end of test run described in question.
i have browser.quit() in afterscenario , afterfeature still processes remain running hoping kill in aftertestrun hook.
there no way share data between beforetestrun , aftertestrun hooks.
however regarding:
i have browser.quit() in afterscenario , afterfeature still processes remain running hoping kill in aftertestrun hook.
you can use code in question referred to, kill lingering processes; if know processes need killed can iterate through these known process verify have been killed, , if haven't can proceed kill them.
Comments
Post a Comment