--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/specflow/c582be87-ce7a-40d7-8067-17fd7be35cc7o%40googlegroups.com.
Hi,Kindly use Hooks.1. BeforeTestRun - get the instance of the driver2. BeforeFeature/BefoeScenario - register the instance using IObjectContainer3. Call driver instance in Feature Test Step binding class constructor4. NOTE: do not call instance of driver in common Step binding class5. PARALLEL EXECUTION. use default.srprofile (Spec Runner) and add testThreadCount=1/2/3I hope it helps.Regards,Praveen
On Mon, 10 Aug 2020, 16:28 ALISTER ERNEST, <aliste...@gmail.com> wrote:
We have multiple feature files with their own step definitions as well as pulling from a common step definition class. When each feature file is run individually, the tests run great, but when all 3 feature files are run, they launch 3 instances of the browser and the tests end up randomly failing and passing.--How to have just one instance of the browser launched and have these tests run sequentially. Also, if they run in parallel, how to ensure that there is no threading issue within the run causing the tests to randomly fail?Thanks in advance!-Alister
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spec...@googlegroups.com.