简体   繁体   中英

parallel execution in nunit for bdd test cases

I am working on BDD (written in selenium webdriver with c#). For sequential execution we were using nunit but now the client requirement is parallel execution. Gone through so many documentation but only found Pnunit. Steps executed till now

  1. downloaded pnunit
  2. changes the setup method the use pnunit
  3. created agent.conf file
  4. run "agent agent.conf" to start agent
  5. created app.conf file for parallel execution
  6. run "launcher app.conf" for execution

but its also not working. It says that class is not found under dll. Please provide any suggestions.

-Neeraj

Concurrent execution is not supported by Specflow using the standard test runners as the Specflow engine itself is not thread safe. This issue has been addressed and is currently being tested, and the fixed code should be merged in the next few weeks. Please see the discussion here and here

It is possible to use app domain isolation to run tests in parallel, Specflow+ and NCrunch use this technique.

我已经开发了一种并行运行硒测试的方法,我在这里写过http://blog.dmbcllc.com/running-selenium-in-parallel-with-any-net-unit-testing-tool/

YOu can try this tool https://github.com/qakit/ParallelTestRunner . I developed it for running NUnit tests in parallel (actually it will run in parallel not tests but testfixtures in your tests lib). Works fine for me =). If you will face any problems report me, will try to solve.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM