Zfilipin has uploaded a new change for review. https://gerrit.wikimedia.org/r/61555
Change subject: Updated README, how to use secret.yml and MEDIAWIKI_URL ...................................................................... Updated README, how to use secret.yml and MEDIAWIKI_URL Bug: 47865 Change-Id: I0db34da0319054590dc71da97e25eff37e72ba93 --- M README.md 1 file changed, 8 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/qa/browsertests refs/changes/55/61555/1 diff --git a/README.md b/README.md index 0650b25..7e72b40 100644 --- a/README.md +++ b/README.md @@ -4,18 +4,24 @@ 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](https://rvm.io/) and on Windows [RubyInstaller](http://rubyinstaller.org/). -Update RubyGems and install the required RubyGems: +Clone the repository, `cd` into it, update RubyGems and install the required RubyGems: cd browsertests gem update --system gem install bundler bundle install -You will need a file with credentials located at `/private/wmf/secret.yml`. For local testing, create a user named `Selenium_user` on your local wiki and record the password in this file as +`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`. -- To view, visit https://gerrit.wikimedia.org/r/61555 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0db34da0319054590dc71da97e25eff37e72ba93 Gerrit-PatchSet: 1 Gerrit-Project: qa/browsertests Gerrit-Branch: master Gerrit-Owner: Zfilipin <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
