GithubHelp home page GithubHelp logo

qa-browsertests's Introduction

Browser testing at WMF

Environment

To run the Selenium tests you will have to install Ruby (look at .ruby-version file for the exact version), the latest versions of RubyGems and Firefox (the default browser in which the tests run). The easiest way to install Ruby on Linux/Unix is RVM and on Windows RubyInstaller.

Clone the repository, cd into it, update RubyGems and install the required RubyGems:

cd browsertests
gem update --system
gem install bundler
bundle install

secret.yml file at /private/wmf/ or config/ is required for tests tagged @login. For local testing, create a user named Selenium_user on your local wiki and record the password in this file as

mediawiki_password: password here

Run the tests with bundle exec rake, this should start Firefox.

By default the tests run at en.wikipedia.beta.wmflabs.org. If you want to run the tests elsewhere, you have to set MEDIAWIKI_URL environment variable. For example:

export MEDIAWIKI_URL=http://commons.wikimedia.beta.wmflabs.org/wiki/ # Linux/Unix
set MEDIAWIKI_URL=http://commons.wikimedia.beta.wmflabs.org/wiki/ # Windows

The test run creates an HTML report in reports/ and an XML report (for Jenkins) in reports/junit.

To run a single test enter bundle exec cucumber features/FEATURE_NAME.feature.

Sites

The code repository is https://gerrit.wikimedia.org/r/#/admin/projects/qa/browsertests, the GitHub mirror is at https://github.com/wikimedia/qa-browsertests

The Jenkins instance that orchestrates the tests is hosted at https://wmf.ci.cloudbees.com/

The tests are run in multiple browsers at http://saucelabs.com/

Mobile tests are in the tests/acceptance folder of the MobileFrontend extension.

Interested? Read more at How to contribute section of Browser testing page.

Code Climate

qa-browsertests's People

Contributors

zeljkofilipin avatar chrismcmahon avatar cheezy avatar karim1984 avatar klrmn avatar runab avatar brainwane avatar knorrium avatar

Watchers

Virtual Johnny 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.