Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98974

Specflow parallel execution AfterFeature alternatives?

$
0
0

My test suite currently has its features run in parallel, and the scenarios in each of these features run one after the other, without having to reset webdriver in between scenarios. This all works fine but I am struggling to find a good way to do a teardown after the whole feature is finished, I cannot use AfterFeature as it requires my webdriver to be static and that will prevent parallel exeuction from working, and if I do the teardown in afterScenario then I would need to restart my webdriver for every scenario, which will unnecessarily take up much more time. Is there any way to use featurecontext or something to determine if the current scenario is the last one in the feature? or something else that does something similar? I basically need a way to determine if the current scenario is the end of the feature without using Before/AfterFeature


Viewing all articles
Browse latest Browse all 98974

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>