Cmcmahon has submitted this change and it was merged. 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(-) Approvals: Karim.rayani: Looks good to me, but someone else must approve Cmcmahon: Verified; Looks good to me, approved jenkins-bot: Verified 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: merged Gerrit-Change-Id: I0db34da0319054590dc71da97e25eff37e72ba93 Gerrit-PatchSet: 1 Gerrit-Project: qa/browsertests Gerrit-Branch: master Gerrit-Owner: Zfilipin <zfili...@wikimedia.org> Gerrit-Reviewer: Cmcmahon <cmcma...@wikimedia.org> Gerrit-Reviewer: Karim.rayani <karim.ray...@gmail.com> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits