Skip to content

lucasthomaz97/Amazon-Search-Automated-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Search Automated Test

🇧🇷 Português | 🇺🇸 English


Português

Teste de automação web desenvolvido durante um treinamento corporativo em 2020, utilizando Ruby com o framework Cucumber.

Este é o projeto sem orientação a objetos, utilizando steps e definições diretas.

O projeto realiza uma busca pelo livro "Código Limpo" no site da Amazon Brasil e valida se o resultado é exibido corretamente.

Stack

  • Ruby 2.6+
  • Cucumber (BDD)
  • Capybara
  • Selenium WebDriver
  • Report Builder

Estrutura

├── features/
│   ├── clean_code.feature          # Cenário em Gherkin
│   ├── step_definitions/
│   │   └── amazon_steps.rb        # Definição dos steps
│   └── support/
│       ├── env.rb                 # Configuração do Capybara
│       └── hooks.rb               # Hooks (screenshots, relatórios)
├── cucumber.yaml                   # Perfis do Cucumber
├── gemfile                         # Dependências
└── .gitattributes                  # Configuração do Linguist

Como executar

# Instalar dependências
bundle install

# Executar os testes
cucumber

Os relatórios serão gerados em cucumber_web_report.html e report.json.

🔗 Versão com orientação a objetos (POO)


English

Web automation test developed during a corporate training in 2020, using Ruby with the Cucumber framework.

This is the non-object-oriented version, using direct steps and definitions.

The project searches for the book "Código Limpo" (Clean Code) on Amazon Brazil and validates that the result is displayed correctly.

Stack

  • Ruby 2.6+
  • Cucumber (BDD)
  • Capybara
  • Selenium WebDriver
  • Report Builder

Project Structure

├── features/
│   ├── clean_code.feature          # Gherkin scenario
│   ├── step_definitions/
│   │   └── amazon_steps.rb        # Step definitions
│   └── support/
│       ├── env.rb                 # Capybara config
│       └── hooks.rb               # Hooks (screenshots, reports)
├── cucumber.yaml                   # Cucumber profiles
├── gemfile                         # Dependencies
└── .gitattributes                  # Linguist config

How to run

# Install dependencies
bundle install

# Run tests
cucumber

Reports will be generated at cucumber_web_report.html and report.json.

🔗 Object-oriented version (OOP)


Projeto criado em 2020 como parte de um treinamento corporativo em automação de testes.

Project created in 2020 as part of a corporate training in test automation.

About

Automated amazon.com.br search algorithm using ruby, capybara, selenium and cucumber.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors