Giter VIP home page Giter VIP logo

selenium-grid-startup's Introduction

Selenium startup script (NOW UPDATED FOR SELENIUM 2.X)

This is a simple startup script based on the jenkins startup script.

This startup script assumes you have selenium server 2.x installed in the dir /var/lib/selenium also assumes you have the pkg daemon installed and a java runtime installed (this was tested in ubuntu 10.04.4 with openjdk-6-jdk)

and the following already created in your linux box:

id: selenium

home: /var/lib/selenium

shell: /bin/bash

selenium installation directory: /var/lib/selenium

sudo groupadd -r selenium
sudo useradd -r -d /var/lib/selenium -s /bin/bash -m -g selenium -G selenium selenium

log dir: /var/log/selenium owned by the selenium id

sudo mkdir /var/log/selenium
sudo chown selenium.selenium /var/log/selenium

Install the selenium server 2.x in your home directory:

sudo wget --no-check-certificate https://selenium.googlecode.com/files/selenium-server-standalone-2.32.0.jar -O /var/lib/selenium/selenium-server-standalone-2.32.0.jar

Create a symlink:

cd /var/lib/selenium
sudo ln -s selenium-server-standalone-2.32.0.jar selenium-server-standalone.jar

Create a default grid.yml configuration:

sudo cp /local/repo/path/grid.yml /var/lib/selenium/

Copy the default file and the init.d file in the right locations:

sudo cp /local/repo/path/etc/init.d/selenium /etc/init.d/
sudo cp /local/repo/path/etc/default/selenium /etc/default/

Make sure the init.d script is executable:

sudo chmod +x /etc/init.d/selenium   

Install the service startup:

sudo update-rc.d selenium defaults

Start the selenium hub:

sudo /etc/init.d/selenium start

Check the logs:

sudo tail -f /var/log/selenium/selenium.log

The service configuration can be found in /etc/default/selenium

selenium-grid-startup's People

Contributors

davidsickmiller avatar feniix avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.