Skip to main content

Command Palette

Search for a command to run...

Selenium : Use Selenium-side-runner to run tests in parallel in windows ?

Published
2 min read
S

I love learning about technology and sharing that with others

So in this article we will be looking into selenium-side runner which is basically a command line tool that will run the selenium tests recorded by selenium-ide

STEPS :

  1. Record any browser automation using selenium-ide extension , then add a test suite and in the settings of the test suite check the option for the parallel execution of the tests.

  2. If we run these tests using the selenium-ide it will run in the browser and it will run in serial fashion

image.png

How to run install selenium-side-runner ?

  1. Selenium-side-runner is the cli tool that will help us to run the tests in parallel.

  2. For this we need node, and then we need to run the below mentioned command

npm install -g selenium-side-runner
  1. We also need chromedriver, or geckodriver to run our tests
npm install -g chromedriver

npm install -g geckodriver
  1. Now run your test suite :

selenium-side-runner -c "browserName=firefox" projectName.side
  1. This should run your test but sometimes we can see any issue with the version of the chromedriver or geckodriver compatibility with the browser versions

How to fix the geckodriver version issue. ?

  1. We can download the binary from the github repo and that we can add in the path in windows and that will solve this issue. :)

https://www.qafox.com/new-selenium-ide-configuring-command-line-runner-side-runner/

https://www.qafox.com/new-selenium-ide-parallel-execution-of-tests-using-command-line-runner/

https://chromedriver.chromium.org/downloads

24 views

More from this blog

H

hashcodehub

271 posts

Consistent, Passionate and Organized :)