-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request da Isabela Vidal #4 from AndressaKarla/Branch_Company
(Isabela Vidal) "Acrescentei meu caso de teste de listar as empresas cadastradas, e adicinionei dois arquivos na estrutura, um na pasta de keyword, e outra arquivo na pasta de tests, rodei todos os testes juntos da estrutura e obtive sucesso em todos os testes, sem quebrar" (Andressa Karla) "Realizei alguns pequenos ajustes nos arquivos: 1. empresa_keyword.robot - Passando "Test Teardown Encerrar sessão" para o arquivo "empresa_test.robot" - Removendo trechos de autenticação, pois estão concentrados na keyword "Realizar login (ADMIN)" - Removendo trechos com mapeamento de elementos não utilizados, etc 2. empresa_test.robot - Passando "Test Teardown Encerrar sessão" do arquivo "empresa_keyword.robot" para esse arquivo - Movendo o trecho de "[Tags]" para cima do trecho "Realizar login (ADMIN)""
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
*** Settings *** | ||
Library SeleniumLibrary | ||
|
||
Resource ../base.resource | ||
|
||
*** Variables *** | ||
${EMPRESAS_XPATH} //div[contains(@class, 'MuiListItemText-root css-1tsvksn') and contains(@id,'Cadastros')] | ||
${CADASTROS_XPATH} //div[contains(@class, 'MuiListItemText-root css-1tsvksn') and contains(@id,'Cadastros')] | ||
${NOME_COLUNA_XPATH} //div[contains(@class, 'css-wgzttu') and text()='Nome'] # XPath para a coluna "Nome" | ||
|
||
|
||
*** Keywords *** | ||
Clicar na opção Cadastros | ||
Wait Until Element Is Visible ${CADASTROS_XPATH} | ||
Scroll Element Into View ${CADASTROS_XPATH} | ||
Wait Until Element Is Enabled ${CADASTROS_XPATH} | ||
Click Element ${CADASTROS_XPATH} | ||
|
||
Clicar no botão Empresa | ||
Go To ${URL}/company | ||
Click Element ${EMPRESAS_XPATH} | ||
Sleep 10 # Aguarda 5 segundos para visualizar a tela | ||
Wait Until Element Is Visible ${NOME_COLUNA_XPATH} # Aguarda até a coluna "Nome" estar visível |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
*** Settings *** | ||
Library Process | ||
Resource ../resources/base.resource | ||
Resource ../resources/keywords/login_keyword.robot | ||
Resource ../resources/keywords/empresa_keyword.robot | ||
|
||
Test Teardown Encerrar sessão | ||
|
||
|
||
*** Test Cases *** | ||
Listar empresas cadastradas | ||
[Tags] empresa_admin regressao | ||
Realizar login (ADMIN) | ||
Wait Until Page Contains text=Logout | ||
Clicar na opção Cadastros | ||
Wait Until Page Contains text=Cadastros | ||
Sleep 5 | ||
Clicar no botão Empresa | ||
Sleep 5 |