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. AlsoSublimetextis equally as good as Rubymine IDE for cucumber tests.- Install RubyMine for writing automation test cases, creating test files and folders.
Chromedriverin order to establish connection to chrome browser.Geckodriverin order to establish connection with Firefox.- Place the
ChromedriverorGeckodriverin the webem folder in the system32 and lib folder in ruby installation folder. - Do a
gem install bundlerin the ruby terminal - Do a
gem install bundlein the ruby terminal - Navigate to the project folder, and execute
gem install watir,gem install watir-webdriver,gem install selenium-webdriver