Behavior driven development (BDD) approach to write automation test scripts to test web applications using Ruby, Selenium and Cucumber.
The project architecture uses the standard Cucumbers structure.
ruby-web-testing/
├── config
├── features
│ ├── page_objects
│ ├── step_definitions
│ ├── support
├── reports
│ ├── html
│ ├── json
│ ├── screenshots
├── resources
│ ├── demo_app
This project uses the design patterns from Rubocop Ruby Style Guide.
-
Install Ruby using Official Documentation.
-
Download and setup the chromedriver, geckodriver and operachromiumdriver.
-
Install Bundler
$ gem install bundler
-
Install Dependencies
$ bundle install
-
Run Tests
$ bundle exec cucumber -t @tag BROWSER=chrome
-
Run Rubocop (Linter)
$ rubocop
-
Run Rufo (Prettier)
$ rufo --check .