This repository contains automated tests developed with Selenium WebDriver The goal of these tests is to validate the user registration functionality in a user management system by performing the login process, verifying user data on the web interface, and subsequently creating tasks through the system by filling out the task creation form.
Este repositório contém testes automatizados desenvolvidos com Selenium WebDriver. O objetivo desses testes é validar a funcionalidade de registro de usuário em um sistema de gerenciamento de usuários, realizando o processo de login, verificando os dados do usuário na interface web e, posteriormente, criando tarefas no sistema ao preencher o formulário de criação de tarefa.
To run the tests, the following tools are required:
Para rodar os testes, é necessário ter as seguintes ferramentas instaladas:
-
Java 11 or higher: The programming language used for developing the tests.
-
Maven: For dependency management and test execution.
-
WebDriver Manager: For automatic browser driver management.
-
ChromeDriver or GeckoDriver (Firefox): Browser drivers, automatically configured by WebDriver Manager.
-
Java 11 ou superior: A linguagem de programação usada para o desenvolvimento dos testes.
-
Maven: Para gerenciamento de dependências e execução dos testes.
-
WebDriver Manager: Para gerenciamento automático dos drivers dos navegadores.
-
ChromeDriver ou GeckoDriver (Firefox): Drivers de navegação, configurados automaticamente pelo WebDriver Manager.
This project uses the following dependencies:
Este projeto utiliza as seguintes dependências:
-
Selenium WebDriver: Automation tool for browser interaction.
-
JUnit 5: Testing framework used.
-
WebDriverManager: For automatic browser driver management.
-
Selenium WebDriver: Ferramenta de automação para interação com navegadores.
-
JUnit 5: Framework de testes utilizado.
-
WebDriverManager: Para gerenciar os drivers de navegadores automaticamente.
-
Clone the repository:
git clone https://github.com/TiagoMiqueiasMG/AutomationWithSelenium.git
git clone https://github.com/TiagoMiqueiasMG/AutomationWithSelenium.git
-
Compile and run the tests with Maven:
mvn clean testIsso vai baixar as dependências necessárias e executar os testes configurados no projeto.
-
Choose the browser:
The browser to be used in the tests can be configured in the static variable
navegadorin the code (inside theSignUpTestsclass). The possible values for the variable are:O navegador a ser utilizado nos testes pode ser configurado na variável estática
navegadorno código (dentro da classeSignUpTests). Os valores possíveis para a variável são:"chrome": To use Google Chrome."firefox": To use Mozilla Firefox.
Exemplo de configuração da variável
navegador:public static String navegador = "chrome";
ou
public static String navegador = "firefox";
-
Test Results:
After running the tests, you will see the results in the console, indicating whether the tests passed or failed.
Após a execução dos testes, você verá o resultado no console, indicando se os testes passaram ou falharam.
-
src/test/java/br/com/mantis/provabase/signup: Contains the test class
SignUpTests, which performs the login process, verifies the presence of the user name on the interface, and then creates tasks by filling out the task creation form.-
SignUpTests.java: Test that validates the registration of a new user with valid data.
-
CreateTaskTests.java: Handles the task creation process after successful login.
-
SignUpTests.java: Teste que valida o registro de um novo usuário com dados válidos.
-
CreateTaskTests.java: Responsável pelo processo de criação de tarefas após o login bem-sucedido.
-
The test simulates the process of registering a new user and then creating a task by performing the following steps:
O teste simula o processo de registro de um novo usuário e depois a criação de uma tarefa, realizando os seguintes passos:
-
Open the system: Access the login system of the Base2 application through the configured browser.
-
Fill in the login fields: Enter the username and password in the respective fields.
-
Validate user name: After logging in, the user name is verified on the interface to ensure successful login.
-
Create Task: After successful login, navigate to the "Create Task" section, fill out the task creation form, and submit it.
-
Close the browser: After the test execution, the browser is closed.
-
Abrir o sistema: O sistema de login da aplicação Base2 é acessado através do navegador configurado.
-
Preencher os campos de login: O nome de usuário e a senha são inseridos nos campos correspondentes.
-
Validar o nome do usuário: Após o login, o nome do usuário é verificado na interface para garantir que o login foi realizado corretamente.
-
Criar Tarefa: Após o login bem-sucedido, navegue até a seção "Criar Tarefa", preencha o formulário de criação de tarefa e envie-o.
-
Fechar o navegador: Após a execução do teste, o navegador é fechado.
This project is licensed under the MIT License.
Este projeto está licenciado sob a Licença MIT.
Let me know if any further adjustments are needed!