Project Contains test cases written in Cucumber framework with gherkin language. Step definitions are written in Ruby with WATIR module. Browser is automated with Selenium-webdriver.
myfeature.feature contains the sample test cases, written to automate google for learning about WATIR.
Installation:
- Install RubyInstaller or RubyKit
- Node.js Installer in case, you want some scripts done with JS.
Komodo edit-
Wonderful IDE that supports most programming languages. AlsoSublimetext
is equally as good as Rubymine IDE for cucumber tests.- Install RubyMine for writing automation test cases, creating test files and folders.
Chromedriver
in order to establish connection to chrome browser.Geckodriver
in order to establish connection with Firefox.- Place the
Chromedriver
orGeckodriver
in the webem folder in the system32 and lib folder in ruby installation folder. - Do a
gem install bundler
in the ruby terminal - Do a
gem install bundle
in the ruby terminal - Navigate to the project folder, and execute
gem install watir
,gem install watir-webdriver
,gem install selenium-webdriver