Basic UI testing framework with Capybara + Ruby + Bundler + Gauge testing The-Internet
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.bundle
.vscode
env
logs
reports
specs
step_implementations
.DS_Store
.gitignore
.rspec
.ruby-version
Gemfile
Gemfile.lock
README.md
install-chrome.sh
manifest.json

README.md

capybara-gauge

This project is a basic UI testing framework with Capybara + Ruby + Bundler + Gauge testing Dave Haeffner's site, The-Internet.

Normally, logs and reports are set not to upload in the .gitignore. We have uploaded both for the reader to view.

Example: The reader can view the HTML Reports: (http://htmlpreview.github.com/?https://github.com/tjmaher/capybara-gauge/blob/master/reports/html-report/index.html) generated.

Basic Capybara-Gauge

December 2018

Code walkthoughs are given on the software testing blog, Adventures in Automation at http://tjmaher.com/

Framework

  • Spec: The test specifications: Human readable documents telling what is being tested and how
  • Step Implementations: Matches the test steps with the Capybara code that executes the browser tests
  • Step Implementations/Spec_Helper.rb: Configures Capybara to work with the Gauge framework, sets up Chrome to open in headless and non-headless mode, and sets up Chrome and ChromeDriver logging.
  • Reports: See what happens when the browser tests run, in xml, json, or html format.
  • Logs: Anything go wrong when running the tests? Check if there are console errors in the chrome.log, or Selenium problems in the chromedriver.log.