I have been using SpecRun and found this behavior that it executes the BeforeFeature and AfterFeature steps in all the available threads. I was hoping it will only execute the said steps "once and on a single thread".
Ideal Scenario for 3 thread execution would be:
- BeforeFeature steps will be executed on Thread 1
- Scenario 1 will be executed on Thread 1, Scenario 2 will be executed on Thread 2, Scenario 3 will be executed on Thread 3
- After Feature steps will be executed on Thread 1
Actual Scenario happening for me right now:
- BeforeFeature steps are executed on Thread1, BeforeFeature steps are executed on Thread2, BeforeFeature steps are executed on Thread3
- Scenario 1 are executed on Thread 1, Scenario 2 are executed on Thread 2, Scenario 3 are executed on Thread 3
- AfterFeature steps are executed on Thread1, AfterFeature steps are executed on Thread2, AfterFeature steps are executed on Thread3
I am using Selenium WebDriver 2.47.0
, SpecRun1.2
and Specflow 1.9