Reading/Browser tests/Setting up a browser test instance

If you prefer you follow instructions to manually setup a browser test bot but we;ve created a bash script, Barry-the-Browser-Test-Bot-Installer in effort to reduce the amount of heavy lifting.

To setup a browser test bot labs-vagrant instance, please follow these instructions:
 * Create a Labs / Gerrit account by signing up at wikitech (eg: Barrythebrowsertestbot)
 * Request a labs project if a project doesn't already exist. Currently we already have a project called reading-smoketest.
 * Create a labs instance Choose  and configure with   checked. You must have Project Admin rights in a project to create and manage its instances. You can ask an existing Project Admin in a project to grant you the role.
 * ssh into your instance e.g.
 * If you cannot access your labs project. Try  then ssh into your instance from there.  ssh instance-name
 * Following instructions from Help:Labs-vagrant Run an initial provision and enable the project roles needed for your testing instance.
 * Setup a Web Proxy and link to the instance.
 * Example:


 * Checkout the Barry installer script and run it as sudo.


 * The script does the following.
 * Installs npm, nodejs-legacy, phantomjs, ruby, ruby-dev, updates gems, bundler, git-review/
 * Creates a system user account for the testbot and does the following for the new user:
 * Installs Barry-the-Browser-Test-Bot at ~/barrybot and adds to $PATH by editing bashrc
 * Creates a new ssh key for the test bot user. This is required to command Gerrit.
 * Asks for the mediawiki server url (eg: http://reading-smoketest.wmflabs.org)
 * Wwill create the MediaWiki account Mr_Selenium with sysop and bureaucrat
 * Writes the bot configuration in ~/.bashrc
 * Asks for a project name and dependency and creates a run script. Currently configures an extension with a dependency. (eg: Gather and MobileFrontend)
 * Writes the run script to /home/$username/barrybot/run.sh
 * Installs and configures Arcanist for phabricator commands
 * To setup Arcanist, it will ask for your phabricator api token which can be found https://phabricator.wikimedia.org/conduit/login
 * Prints your newly created public key and asks you to add it to https://gerrit.wikimedia.org/r/#/settings/ssh-keys
 * Run the bot once


 * Run the bot indefinitely