Mozilla's Selenium Grid configuration
Перейти к файлу
Dave Hunt 539c6a0476 Merge remote branch 'davehunt/grid2' into grid2 2011-07-08 12:27:56 +01:00
firefoxprofiles/certificateExceptions Disabling all JIT preferences in the certificateExceptions custom profile. 2011-06-15 23:43:26 +01:00
lib Updated to the official release of Selenium 2.0.0 2011-07-07 23:29:23 +01:00
README.md Upgraded to Selenium 2.0 (snapshot version at the moment) 2011-07-06 10:52:30 +01:00
build.xml Upgraded to Selenium 2.0 (snapshot version at the moment) 2011-07-06 10:52:30 +01:00
default.properties Updated to the official release of Selenium 2.0.0 2011-07-07 23:29:23 +01:00
grid_configuration.yml Added Aurora and Nightly environments for Mac OS X and Windows 7. 2011-06-02 01:00:59 +01:00
hub_configuration.json Upgraded to Selenium 2.0 (snapshot version at the moment) 2011-07-06 10:52:30 +01:00
qa-selenium.json Added configuration files to get around the issue with the wrong IP address being selected. 2011-07-08 12:12:19 +01:00
qa-selenium.mv.mozilla.com.properties Added configuration files to get around the issue with the wrong IP address being selected. 2011-07-08 12:12:19 +01:00
qa-selenium2.json Added configuration files to get around the issue with the wrong IP address being selected. 2011-07-08 12:12:19 +01:00
qa-selenium2.mv.mozilla.com.properties Added configuration files to get around the issue with the wrong IP address being selected. 2011-07-08 12:12:19 +01:00
qa-selenium3.json Added configuration files to get around the issue with the wrong IP address being selected. 2011-07-08 12:12:19 +01:00
qa-selenium3.mv.mozilla.com.properties Added configuration files to get around the issue with the wrong IP address being selected. 2011-07-08 12:12:19 +01:00
qa-selenium4.json Added configuration files to get around the issue with the wrong IP address being selected. 2011-07-08 12:12:19 +01:00
qa-selenium4.mv.mozilla.com.properties Added configuration files to get around the issue with the wrong IP address being selected. 2011-07-08 12:12:19 +01:00
qa-selenium5.json Added configuration files to get around the issue with the wrong IP address being selected. 2011-07-08 12:12:19 +01:00
qa-selenium5.mv.mozilla.com.properties Correcting a typo in a configuration file. 2011-07-08 12:27:16 +01:00
qa-selenium6.json Added configuration files to get around the issue with the wrong IP address being selected. 2011-07-08 12:12:19 +01:00
qa-selenium6.mv.mozilla.com.properties Added configuration files to get around the issue with the wrong IP address being selected. 2011-07-08 12:12:19 +01:00
qa2-win7.properties Upgraded to Selenium 2.0 (snapshot version at the moment) 2011-07-06 10:52:30 +01:00
qa4-win7.properties Upgraded to Selenium 2.0 (snapshot version at the moment) 2011-07-06 10:52:30 +01:00
qa6-vista.properties Upgraded to Selenium 2.0 (snapshot version at the moment) 2011-07-06 10:52:30 +01:00
rc-mac.json Upgraded to Selenium 2.0 (snapshot version at the moment) 2011-07-06 10:52:30 +01:00
rc-win7.json Upgraded to Selenium 2.0 (snapshot version at the moment) 2011-07-06 10:52:30 +01:00
wd-mac.json Upgraded to Selenium 2.0 (snapshot version at the moment) 2011-07-06 10:52:30 +01:00
wd-win.json Upgraded to Selenium 2.0 (snapshot version at the moment) 2011-07-06 10:52:30 +01:00

README.md

Moz-Grid-Config

Configuration and launch scripts for Mozilla's Selenium Grid environment.

Prerequisites

  1. Java Runtime Environment
  2. ANT

Configuration

Default properties are set in default.properties, and these can be overridden for an individual machine by providing a <HOSTNAME>.properties file. Any properties in this file will override the default. To find out your hostname run ant debug in the location you've checked out this project and look for something that looks like the following line:

[echoproperties] env.HOSTNAME=LokiMac.local

In this example the hostname is LokiMac.local so your properties file will be LokiMac.local.properties

The hub configuration is stored in hub_configuration.json.

Properties

Below are the properties that can be configured:

selenium.version

The version number of Selenium to use. This is used to locate the library, for example a value of 2.0rc2 will load the library lib/selenium-server-standalone-2.0rc2.jar

hub.host

The host that the hub is running on. This is used when registering nodes with the hub.

hub.port

The port that the hub is running on. Also used when registering nodes with the hub.

node.configuration

Configuration file for the Selenium node, including browser capabilities.

rc.arguments

Any additional arguments to pass to an RC node when it's launched. For example, -singleWindow would launch the Selenium and the application under test in the same window using frames.

custom.firefox.profile

The path of a custom Firefox profile to use. If this property is specified but the value is empty then Selenium will not provide the -firefoxProfileTemplate command line argument and a fresh profile will be generated. Note that the Firefox profile needs to be located in firefoxprofiles directory, and the value of this property is the relative path within firefoxprofiles.

Launching a Selenium hub

Run the following command from the project's location:

ant launch-hub

Launching a Selenium WebDriver node

Run the following command from the project's location:

ant launch-webdriver

Launching a Selenium RC node

Run the following command from the project's location:

ant launch-remote-control

Specifying properties on the command line

You can override any of the properties from default.properties or <HOSTNAME>.properties on the command line by passing them in the format -D<PROPERTY>=<VALUE>. For example, to specify a custom firefox profile for an RC node you would use ant launch-remote-control -Dcustom.firefox.profile=myProfile