Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
362 views
by
retagged by
I run my tests in visual studio when I run 10 tests together after the first one finishes of and gets passed, when the next test starts to run the browser opens and the url is not getting loaded this happens for the rest of my tests too.. Only the first one passes.. if i run them individually all tests pass

1 Answer

0 like 0 dislike
by Master (1.2k points)
I know the problem you are facing.It looks like your driver is declared and defined at the class level.

If you want to do parallel execution, your driver instance should be declared and defined inside the test class itself.

P.S.:  Kindly register and post your code that invokes tests. So, we can help you with what to alter.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...