Selenium/Ruby/mwext-mw-selenium Jenkins job



For this example, you will need internet access. mwext-mw-selenium Jenkins job runs every time you push a patch to Gerrit (for repositories that have the job configured to run), but you can also start it manually.

Advantages

 * You do not have to install anything on your machine.
 * You are probably already familiar with Gerrit and Jenkins.
 * While the tests are running, you can continue using your machine as usual, because everything is happening in Jenkins.
 * Debugging failed tests will be easier, since you will see the browser, logs, screenshots and video of the test run.
 * It will be reasonable fast.
 * MobileFrontend Selenium test run takes about 5 minutes on my machine.
 * It takes about 5 minutes for mwext-mw-selenium Jenkins job to run for MobileFrontend.

Disadvantages

 * You will need internet connection while running the tests.
 * You might not be familiar with Gerrit or Jenkins, so you will have to learn how to use yet another tool.

Check if mwext-mw-selenium is configured to run for a repository

 * In  look for:
 * template


 * Or  job

Run the Selenium tests for jobs with template

 * Upload a patch to Gerrit for a repository.
 * Example: 309594 for MobileFrontend
 * mwext-mw-selenium job runs automatically
 * when all Jenkins jobs configured for the repository are finished, jenkins-bot will leave a comment in Gerrit with links
 * click mwext-mw-selenium link
 * optionally, click Full Log link at the top of the page