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

Popular posts from this blog

html - Cut text on left side inside button while centering -

plugins - CodeIgniter support on netbeans 8.0 -

php - Selecting items from MySQL for a status update feed efficiently while accounting for possible spam -