{"id":15177580,"url":"https://github.com/automacao2024/auto_selenium_junit","last_synced_at":"2026-02-12T10:33:14.486Z","repository":{"id":248711532,"uuid":"829492999","full_name":"Automacao2024/auto_selenium_junit","owner":"Automacao2024","description":"Código-fonte : Automação de Testes com Selenium WebDriver e Java","archived":false,"fork":false,"pushed_at":"2024-09-01T23:54:06.000Z","size":18142,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T05:47:23.099Z","etag":null,"topics":["java","junit4","junit5","selenium","selenium-webdriver"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Automacao2024.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-16T14:36:38.000Z","updated_at":"2024-09-01T23:54:09.000Z","dependencies_parsed_at":"2024-09-23T09:01:51.092Z","dependency_job_id":"90fea322-b1a3-44b4-b4e0-15e78a66f37e","html_url":"https://github.com/Automacao2024/auto_selenium_junit","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"ddab688e48a8ecae3e87e4a7bf4d329e5ccad926"},"previous_names":["automacao2024/auto_selenium_junit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Automacao2024/auto_selenium_junit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Automacao2024%2Fauto_selenium_junit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Automacao2024%2Fauto_selenium_junit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Automacao2024%2Fauto_selenium_junit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Automacao2024%2Fauto_selenium_junit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Automacao2024","download_url":"https://codeload.github.com/Automacao2024/auto_selenium_junit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Automacao2024%2Fauto_selenium_junit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269288867,"owners_count":24391926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","junit4","junit5","selenium","selenium-webdriver"],"created_at":"2024-09-27T14:40:33.940Z","updated_at":"2026-02-12T10:33:14.445Z","avatar_url":"https://github.com/Automacao2024.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Projeto de Automação com Selenium Grid e Testes\n\nEste documento fornece uma visão geral detalhada sobre o desenvolvimento e a configuração de automação de testes usando Selenium Grid, Java, Spring Boot, PostgreSQL e outras tecnologias discutidas. Inclui a configuração do Selenium Grid, a criação de testes automatizados, e a configuração de ambientes de teste.\n\n## Índice\n\n1. [Visão Geral do Projeto](#visão-geral-do-projeto)\n2. [Configuração do Selenium Grid](#configuração-do-selenium-grid)\n    - [Instalação do Java](#instalação-do-java)\n    - [Download do Selenium Server](#download-do-selenium-server)\n    - [Configuração do Hub](#configuração-do-hub)\n    - [Configuração do Node](#configuração-do-node)\n    - [Configuração Avançada do Node (Opcional)](#configuração-avançada-do-node-opcional)\n    - [Automatização da Inicialização](#automatização-da-inicialização)\n3. [Configuração do Projeto de Testes](#configuração-do-projeto-de-testes)\n    - [Estrutura do Projeto](#estrutura-do-projeto)\n    - [Testes com Selenium e Java](#testes-com-selenium-e-java)\n    - [Criação de Page Objects](#criação-de-page-objects)\n    - [Implementação de DSL (Domain-Specific Language)](#implementação-de-dsl-domain-specific-language)\n    - [Integração com Cucumber](#integração-com-cucumber)\n4. [Configuração do Ambiente de Testes](#configuração-do-ambiente-de-testes)\n    - [Arquivo `properties`](#arquivo-properties)\n    - [Configuração de Logs e Evidências](#configuração-de-logs-e-evidências)\n5. [Referências e Recursos](#referências-e-recursos)\n\n## Visão Geral do Projeto\n\nEste projeto inclui a configuração e execução de testes automatizados utilizando Selenium Grid para distribuição e paralelização dos testes, bem como a configuração de testes para sistemas desenvolvidos com Java, Spring Boot, PostgreSQL e outras tecnologias. A automação inclui a criação de testes para páginas de login, funcionalidades específicas e integração com o Cucumber para testes de aceitação.\n\n## Configuração do Selenium Grid\n\n### Instalação do Java\n\nO Selenium Grid requer o Java para ser executado. Instale o Java com os seguintes comandos:\n\n```bash\nsudo apt update\nsudo apt install openjdk-11-jdk\n```\nDownload do Selenium Server\nBaixe o arquivo JAR do Selenium Server: \n\n```bash\nwget https://selenium-release.storage.googleapis.com/4.20.0/selenium-server-4.20.0.jar\n``` \nConfiguração do Hub\nInicie o Hub do Selenium Grid com o seguinte comando:\n\n```bash\njava -jar selenium-server-4.20.0.jar hub\n```\nO Hub estará disponível em http://localhost:4444.\n\nConfiguração do Node\nPara adicionar um Node, execute o seguinte comando (em uma máquina diferente ou no mesmo servidor):\n\n```bash\njava -jar selenium-server-4.20.0.jar node --hub http://localhost:4444/grid/register\n```\nConfiguração Avançada do Node (Opcional)\nCrie um arquivo nodeConfig.json para personalizar as capacidades do Node:\n\n```bash\n{\n  \"capabilities\": [\n    {\n      \"browserName\": \"chrome\",\n      \"maxInstances\": 5,\n      \"seleniumProtocol\": \"WebDriver\"\n    },\n    {\n      \"browserName\": \"firefox\",\n      \"maxInstances\": 5,\n      \"seleniumProtocol\": \"WebDriver\"\n    }\n  ],\n  \"configuration\": {\n    \"nodeTimeout\": 120,\n    \"hub\": \"http://localhost:4444/grid/register\",\n    \"maxSession\": 5,\n    \"port\": 5555,\n    \"register\": true,\n    \"registerCycle\": 5000,\n    \"unregisterIfStillDownAfter\": 10000,\n    \"hubPort\": 4444,\n    \"hubHost\": \"localhost\"\n  }\n}\n``` \nInicie o Node com o arquivo de configuração:\n\n````bash\njava -jar selenium-server-4.20.0.jar node --node-config nodeConfig.json\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomacao2024%2Fauto_selenium_junit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautomacao2024%2Fauto_selenium_junit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomacao2024%2Fauto_selenium_junit/lists"}