This is a project to test a shoes search in ebay
These instructions will get you run the tests.
To run the test, is necessary that you install:
Homebrew
2.2.2, but you can use another suite manager(e.g. pip)ruby
2.6.5Chrome
79.0.39 ChromeChromeDriver
79.0.3945.36 ->brew install chromedriver
Firefox
79.0.39 (Optional) Firefoxgeckodriver
0.26.0 (Optional) ->brew install chromedriver
To install all gems, run this command:
bundle install
Copy .env.example to .env
cp .env.example .env
Important: You must change PASS_SENDGRID. If you want you can contact me for that.
To run the automated tests, you run this command:
cucumber
If you want you can generate a report with this command:
cucumber -f html -o results.htm
All the test are in *.features
file.
And used Cucumber structure:
Feature: Search articules
Scenario: Automation Exam
Given User is in Ebay home page
When Search for 'Shoes'
And Search Brand 'PUMA'
And Select size '10'
Then Print the number of results
And Order by price ascendant
And Assert the order taking the first 5 results
And Order and print the products by name in ascendant mode
And Order and print the products by price in descendant mode
- Cucumber - Automation tool for Behavior-Driven Development
- Capybara - Capybara is a library written in the Ruby programming language which makes it easy to simulate how a user interacts with your application.
- Siteprism - A Page Object Model DSL for Capybara
- David Peña - Initial work - darepecu