For some reason when I tried to put my test suite in parallel, the execution process only takes one thread. (Only one browser of 4 that opens). That creates errors. There's something that can help solve that problem? I'm using selenium, specflow 3.0 and Nunit3. I'm using the IOC implementation as well. I'm searching a lot and don't find the answer.
[Binding]
class UiBaseHooks
{
private static WebBrowser _driver;
private readonly IObjectContainer _objectContainer;
public UiBaseHooks(IObjectContainer objectContainer)
{
this._objectContainer = objectContainer;
}
[BeforeFeature]
public static void BeforeFeature()
{
_driver = new WebBrowser();
_driver.InitBrowser();
}
[BeforeScenario]
public void BeforeScenario()
{
_objectContainer.RegisterInstanceAs(_driver);
}
[AfterFeature]
public static void AfterFeature()
{
//TODO: implement logic that has to run after executing each scenario
_driver.Close();
}
}