Query about SpecFlow multiple features running with NUnit and opening multiple browser instances

145 views
Skip to first unread message

Sreenath

unread,
Apr 3, 2012, 5:43:59 AM4/3/12
to SpecFlow
Hi All,

I had query regarding running the multiple features as follows.

I am trying to running the SpecFlow features (two features) by using
NUnit. When I am running the feature test from NUnit, Internet
Explorer browser instance opens twice. If I add three features to run,
three browser instances are opening and test will run with one of the
instances (randomly) and in the end test fails..as test expects the
current browser (i.e. test running browser) focus went off to other
browser instance.

Could you please guide me, how can I resolve the issue of multiple
browser instances opening for multiple features. If there is only One
feature..then test runs fine and result was pass.

Thank you for your time.

Regards,
Sreenath

vladimir boyarkin

unread,
Apr 13, 2012, 6:50:34 AM4/13/12
to spec...@googlegroups.com
And what do you use for browser driver? Watin, Selenium, etc?

Please make sure that you do not start your browser instance in Feature Start event if so, just stop it in Feature end.
The common practice is to start and stop browser for each feature to avoid sharing data between tests

вторник, 3 апреля 2012 г., 13:43:59 UTC+4 пользователь Sreenath написал:
Reply all
Reply to author
Forward
0 new messages