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.
- Ruby 2.6+
- Cucumber (BDD)
- Capybara
- Selenium WebDriver
- Report Builder
├── 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
# Instalar dependências
bundle install
# Executar os testes
cucumberOs relatórios serão gerados em cucumber_web_report.html e report.json.
🔗 Versão com orientação a objetos (POO)
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.
- Ruby 2.6+
- Cucumber (BDD)
- Capybara
- Selenium WebDriver
- Report Builder
├── 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
# Install dependencies
bundle install
# Run tests
cucumberReports 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.