How to run tests in parallel using Selenium WebDriver and C#?

Hello,

I recently started doing an automated framework using C# and Selenium WebDriver and for the instantiation of WebDriver I used the code found here: http://toolsqa.com/selenium-webdriver/c-sharp/browser-factory-or-webdriver-factory/ . As it is said there, that code can’t handle parallelism and it’s said that a further part of the tutorial is coming and I don’t think that it did. Could you please help me modify the code in a way that I can do parallel tests? I tried myself but didn’t succeed.

Thank you.

Default Asked on November 25, 2017 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Parallel test execution involves running a suite of automated tests in parallel as opposed to sequentially. You don’t execute your tests one by one. Rather, you take the entire batch and split it up amongst multiple servers so that each server can run a single test at a time. This techniques has some fantastic advantages to improve your overall software development life cycle.  https://www.janbasktraining.com/blog/top-30-frequently-asked-selenium-interview-questions-answers/

    Train Answered on November 30, 2017.

    Hello,

    I know the definitions, the advantages and what it implies. I just can’t find the code to make it work.

    Thanks.

    on December 2, 2017.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.