Challenge(IT Challenge - https://itchallenges.me/0)
Example of simple browser test using Ruby + Watir(Selenium-based test framework) + Cucumber + PageObject pattern
-
WINDOWS
-
LINUX
- apt-get install ruby 2.3.3
- install google-chrome
- download appropriate version chromedriver for current google-chrome version
- add path to chromedriver.exe into PATH variable
-
go to project folder
-
type in console:
- gem install bundler
- bundle install
(sign up before - https://bitnami.com/account/sign_up)
-
WINDOWS
- set %EMAIL%=your_email
- set %PASSWORD%=your_password
-
LINUX
- export EMAIL=your_email
- export PASSWORD=your_password
- type in console:
- cucumber
-
Ruby 2.3.3
-
Cucumber
-
Watir
-
Page Object gem
-
Page Object pattern
-
Ruby + Cucumber + PageObject video tutorials