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

0 like 0 dislike
578 views
by The go-to Tester (131 points)

2 Answers

2 like 0 dislike
by
  1. In the test explorer in Visual Studio there should be a button that has three lines with circles on the left side of the lines and arrows on the right sides (if you hover over it it says 'Run Tests in Parallel'). Make sure this is checked (its background will be a different colour to the test explorer panels when selected).

  2. For each test you want to be parallel add the attribute Parallelizable. So the thing above your method that looks like [Test] will become [Test, Parallelizable].

  3. Extra - This doesn't apply to you but will apply to a few people so I'll add it. If your Driver is a static instance (like a Singleton) you need to annotate it with [ThreadStatic] or else the different tests will all be called on the same driver.

0 like 0 dislike
by
Using selenium grid.


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

...