GithubHelp home page GithubHelp logo

robot-web-test's Introduction

robot-web-test

robot-web-test

Projeto de automação de testes web utilizando Robot Framework, GitHub Actions e Grafana.

Dependências

  • Python 3.10.12
  • Robot Framework: 6.1.1
  • pip: 22.0.2
  • psycopg2-binary: 2.9.9

Instalação

Instale robot-web-test com pip

  cd robot-web-test
  pip install robotframework
  pip install robotframework-seleniumlibrary
  pip install psycopg2-binary

Instalação do Grafana e Postgres

Rodando os testes

Para rodar os testes, rode o seguinte comando

  robot -d ./report -M Application:robot-web-test test/login_test.robot

Enviando os resultados dos testes

Para enviar os resultados para o Grafana, rode o seguinte comando

  python3 test_archiver/output_parser.py --dbengine postgres --database robot_results --host localhost --user postgres --pw admin --port 5432 --metadata Application:robot-web-test report/output.xml

Para enviar para o Grafana execute somente o arquivo "test/login_test.robot", caso rode todos os testes o output_parser.py não conseguirá fazer a leitura do XML para enviar os dados para o banco de dados.

Relatório dos testes no Grafana

Acessando o Grafana

http://localhost:3000/
Login: admin
Senha: admin

Relatório dos testes do robot

./report/report.html

Demonstração

Assistir vídeo da execução
Assistir vídeo da execução e dados no Grafana

Screenshots


Referência

robot-web-test's People

Contributors

rlhorochovec avatar

Stargazers

 avatar

Watchers

 avatar

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.