This is a test project that provides basic coverage for some selected giphy features. It's written in Ruby using on Webdriver and Cucumber technologies (for UI tests), RSpec and Airborne technologies (for API tests).
The framework requires Ruby version 2.6.5 or above. The simplest way to manage ruby version is using rbenv.
The framework requires chromedriver ChromeDriver 2.44.609545 or above. The simplest way to install chromedriver. It can be downloaded here.
I recommend to use bundler
to manage Ruby gems. First of all, you're need to install bundler gem itself:
gem install bundler
After this, you can use bundler
to manage all other dependencies for the project:
bundler install
Now, you are ready to run both type of tests.
To run features, go to the project dir in console and perform:
bundle exec cucumber
All results are stored under results
directory. It contains html-report, screenshots and html pages (last two are added only in case of failed tests). Unfortunatelly, screenshots are not embedded in html-report as html reporter in cucumber 4.0 has an issue with attaching files.
Every new run cleans results
directory.
To run specs, go to the project dir in console and perform:
bundle exec rspec
All tests are run on CircleCI. They are triggered by commit. See related project for details.