GithubHelp home page GithubHelp logo

rafaeldalvas / python-selenium-webdriver Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 9.9 MB

Projeto para artigo de TCC

Python 91.17% PowerShell 8.23% Batchfile 0.60%
selenium selenium-python pytest pytest-plugin allure allure-framework selenium-webdriver python

python-selenium-webdriver's Introduction

python-selenium-webdriver

Projeto para artigo de TCC: Um estudo de caso para testes automatizados com Python e Selenium webdriver

Pré-requisitos

  • Python 3.9
  • Google Chrome (última versão)
  • Selenium Webdriver
  • Pytest - Allure Framework

Configurar o ambiente

  • Instalar o Selenium:
$ pip install selenium
  • Baixar o driver do Chrome.

  • Mover o chromedriver.exe para o seguinte diretório:

C:\Python39\Scripts

Exibir os resultados

  • Instalar o Allure:
$ pip install allure-pytest
  • Exibir os reports:
$ allure serve reports

Documentação utilizada

Selenium with Python
Allure Framework

Autores

@rafaeldalvas
@joaobonetti

python-selenium-webdriver's People

Stargazers

 avatar

Watchers

 avatar

Forkers

joaobonetti

python-selenium-webdriver's Issues

POM

pages:

  • page_criar_evento.py
  • page_editar_evento.py
  • page_criar_atividade.py
  • page_editar_atividade.py
  • page_cadastrar_palestrante.py
  • page_editar_palestrante.py
  • page_confirmar_presenca.py
  • page_cerficado_palestrante.py
  • page_inscricao.py
  • page_confirmar_inscricao.py
  • page_cerficiado_participante.py
  • page_incricao_externo.py
  • page_certificado_palestrante_externo.py
  • page_certificado_participante_externo.py

tests:

  • test_criar_evento.py
  • test_editar_evento.py
  • test_criar_atividade.py
  • test_editar_atividade.py
  • test_cadastrar_palestrante.py
  • test_editar_palestrante.py
  • test_confirmar_presenca.py
  • test_cerficado_palestrante.py
  • test_inscricao.py
  • test_confirmar_inscricao.py
  • test_cerficiado_participante.py
  • test_incricao_externo.py
  • test_certificado_palestrante_externo.py
  • test_certificado_participante_externo.py

utils:

  • config.py
  • login.py

Melhorias

  • Padronizar webdriver.get(url)
  • Padronizar verificações de erro
  • Definir atributos login/senha dentro da função
  • Incluir login.py no gitignore
  • Remover sleep desnecessário
  • Fechar webdriver ao final das teste
  • Apagar imports não utilizados
  • Colocar chromedriver.exe dentro do respositório

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.