maximilianoalves / capybara-google-search

Projeto base de exemplo utilizando Capybara + Site_prism + Cucumber + Rspec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capybara + Site_prism + Cucumber + Rspec

Projeto base de exemplo utilizando Capybara + Site_prism + Cucumber + Rspec

Ferramentas utilizadas:

Estrutura de pastas

📦capybara-google-search
 ┣ 📂tests
 ┃ ┣ 📂features
 ┃ ┃ ┣ 📂pages
 ┃ ┃ ┃ ┣ 📜google_results_page.rb
 ┃ ┃ ┃ ┗ 📜google_search_page.rb
 ┃ ┃ ┣ 📂specs
 ┃ ┃ ┃ ┗ 📜pesquisando_google.feature
 ┃ ┃ ┣ 📂step_definitions
 ┃ ┃ ┃ ┗ 📜pesquisando_google.rb
 ┃ ┃ ┗ 📂support
 ┃ ┃ ┃ ┣ 📜env.rb
 ┃ ┃ ┃ ┗ 📜hooks.rb
 ┃ ┣ 📂reports
 ┃ ┃ ┗ 📜relatorio.html
 ┃ ┣ 📜.DS_Store
 ┃ ┣ 📜Gemfile
 ┃ ┣ 📜Gemfile.lock
 ┃ ┗ 📜cucumber.yml
 ┣ 📜.gitignore
 ┗ 📜README.md

Tutorial, Instalação e execução

Ter previamente o ruby instalado em sua máquina

Windows: Ruby Installer Unix Based: "Ruby for Unix Based"

Instalar o bundler

gem install bundler

Instalar as gems do projeto

bundle install

Definir o chromedriver no path

Para MacOS: brew cask install chromedriver Para Windows: Consultar aqui

Executar

bundle exec cucumber

Relatórios

Consultar o arquivo .html criado dentro da pasta reports

About

Projeto base de exemplo utilizando Capybara + Site_prism + Cucumber + Rspec


Languages

Language:HTML 97.8%Language:Ruby 1.9%Language:Gherkin 0.3%