Skip to content

Publero/selenium-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started with Selenium Grid

Selenium automates browsers. Primarily it is for automating web applications for testing purposes, but is certainly not limited to just that.

Selenium Grid allows you to run your tests against various predefined environments and browsers in parallel. It allows you to distribute tests on multiple machines and in as a result dramatically speeds up in-browser web testing.

This project will help you to quickly and easily set up Selenium Grid so you can concentrate on writing test, not on configuration.

Installation

You can install everything in one simple step:

curl https://raw.github.com/Publero/selenium-grid/master/install.sh | sudo sh

How to use Selenium Grid

Selenium Grid consists of 2 parts: Selenium Server and WebDriver(s). Selenium Server provides API to controll the browsers and runs two modes: hub mode and node mode. To make simple we provided services for both modes.

Selenium server in hub mode (I will reffer to it as the Hub) is what your test framework will connect to (usually thru some language binding - there are many available). To start it run:

sudo service selenium-server-hub start

Selenium server in node mode (I will reffer to them as a Node) uses one of multiple WebDrivers to control browsers. There can be multiple Nodes associated with single Hub. That's how you can distribute testing to multiple machines. We however set up a Node on the same machine as the Hub and configured it to support Google Chrome, Firefox, and Opera, up to 3 paralell instances of each. You can start it by running:

sudo service selenium-server-node start

Note: You don't need a desktop environment to use Selenium Grid. Node uses virtual screen instead.

Some WebDrivers are shipped within browsers (FF & Opera) and we set up for you the ones that aren't.

License

This project is under MIT license. For more information see the file LICENSE shipped with this project.

What next

Soon you can expect more thorough documentation, as well as some basic tutorials on how to use the Grid for actual testing and how to customizee the setup.

Please feel free to report any bugs you encounter, your suggestions and feature requests at out issues page.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages