Automation testing framework (UI) - an example. Based on Ruby, Selenium, and Cucumber
Ruby 2.7.*, selenium-webdriver 3.142.7, rspec 3.9.0, cucumber 3.1.2,
Firefox 90.0, geckodriver 0.29.1,
Chrome 81.0.4044.122, chromedriver 81.0.4044.69
-- automaton-v4
|-- .gitattributes
|-- .gitignore
|-- Gemfile
|-- LICENSE
|-- README.md
`-- features
|-- browser.feature
|-- google.feature
|-- initial.feature
`-- support
| |-- env.rb
`-- step_definition
|-- browser.rb
|-- google.rb
|-- initial.rb
- Install Ruby
- Clone or copy (download) the repository into your target folder
- Move to
automaton-v4
folder, and execute commandbundle install
- Install Firefox / Chrome web browser
- Download and install geckodriver / chromedriver
- Open terminal window
- Go to
automaton-v4
folder - Execute
bundle exec cucumber
bundle exec cucumber features/google.feature
for Mac / Linux orbundle exec cucumber features\google.feature
for Windows, will execute all scenarios ingoogle.feature
filebundle exec cucumber features/google.feature:4
for Mac / Linux orbundle exec cucumber features\google.feature:4
for Windows, will execute the first scenario ingoogle.feature
filebundle exec cucumber features/google.feature:17
for Mac / Linux orbundle exec cucumber features\google.feature:17
for Windows, will execute the second scenario with the first parameter from Examples table ingoogle.feature
file
Go to any UI scenario and change the tag from @firefox
to @chrome
.
Ruby
GitHub, cloning repository
selenium-webdriver
rspec
cucumber
Selenium
Firefox
geckodriver
Chrome
ChromeDriver