Selenium/Ruby/Target MediaWiki-Vagrant virtual machine

For this example, we will not enable any roles and we will use MediaWiki core.

Advantages
Running Selenium tests targeting MediaWiki-Vagrant machine has several advantages:


 * It will be fast, since the target machine is local.
 * MediaWiki core Selenium test run takes about 3 minutes on my machine.
 * It takes about 6-7 minutes for selenium-Core Jenkins job to run.
 * After everything is set up, you do not need internet connection.
 * Debugging failed tests will be easier, since you will see the browser.
 * You are probably already familiar with MediaWiki-Vagrant and have it installed.

Disadvantages

 * You might not be familiar with MediaWiki-Vagrant, so you will have to learn how to install and use yet another tool.
 * You will have to install MediaWiki-Vagrant, Selenium and their dependencies on your machine.
 * While the tests are running the host machine will be pretty unusable because Firefox will be opening and closing for every test and stealing focus.

Set up MediaWiki-Vagrant

 * Follow instructions at MediaWiki-Vagrant.

Install dependencies
You will need internet access for this step. Depending on your operating system, installing dependencies will be different.

Firefox
Installing https://www.mozilla.org/en-US/firefox/new/ Firefox] should be easy enough, and you probably already have it installed.

Ruby
Installing Ruby might be easier, or harder.


 * On Linux, please use appropriate package manager.
 * On Windows, please use RubyInstaller.
 * It should already installed on Mac machines.

After installation, check if everything is all right.

Install required Ruby packages (gems).

or the machine
or