https://gorails.com/setup/ubuntu/14.04
Check setup
- ruby -v
- gem list selenium
- gem install selenium-webdriver
- Firefox
- IRB
Ruby install
❯ curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt | \
rbenv install --patch 2.2.3
~ 6m 50s
❯ rbenv global 2.2.2
~
❯ ruby -v
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
~
❯ echo "gem: --no-ri --no-rdoc" > ~/.gemrc
~
Selenium webdriver
require "selenium-webdriver" https://code.google.com/p/selenium/wiki/RubyBindings
driver.class http://www.rubydoc.info/gems/selenium-webdriver/Selenium/WebDriver/Driver
Core tests
[mw-core]/tests/browser/features/create_account.feature
Schenario Outline can be passed variable
Scenario: [English text] # Just a comment, nothing is parsed
Given [this thing] # Sets up the test
When [other thing] # Action that is part of the test
And
But
Bundler
cd [mwcore]/tests/browser
bundle install
bundle exec cucumber features/create_account.feature:14
Important
export BROWSER=firefox
export MEDIAWIKI_ENVIRONMENT=mw-vagrant-host
Add a comment (Comment Policy)