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

0 like 0 dislike
1.2k views
by The go-to Tester (158 points)
retagged by
I'm use NUnit test framework with Selebium WebDriver. Currently all my tests use NUnit 2.6.4. Is it possible to run tests in parallel, to reduce the execution time?

1 Answer

1 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer

Well, as far as Nunit 2.x is concern, you can run tests in parallel by distributing tests among different assembly and execute those assemblies in parallel

In case of Nunit 3.x and more, you can use Parallelizable Attribute to execute tests in parallel. The framework creates worker threads for running tests in parallel.

It uses queues organized into shifts. A WorkShift consist of queues of work iteams. NUnit runs one WorkShift until all available work is done and switches to the next shift. When all work is completed from all shifts, execution is completed.
 
Here are the shifts listed with their associated queues.
 
 
Shift Queues Workers Usage
Parallel Shift Parallel Queue LoP* Parallelizable tests run in the MTA
  Parallel STA Queue 1 Parallelizable tests run in the STA
Non-Parallel Shift Non-Parallel Queue 1 Non-parallelizable tests run in the MTA
Non-Parallel STA Shift Non-Parallel STA Queue 1 Non-parallelizable tests run in the STA
 
 
 
Hope that helps.
by The go-to Tester (158 points)
Thanks! I'll try to use NUnit 3


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!

...