Skip to main content

Send notifications to chat using Robot Framework.

Project description

TestNotification

PyPI version

A biblioteca TestNotification pode ser utilizada para enviar notificações para diferentes plataformas durante ou após a execução dos testes com o Robot Framework.

Utilização

Instalação

Instale a biblioteca utilizando o comando:

pip install test-notification-library

Exemplo de Uso

Importe a biblioteca no início do seu arquivo de teste Robot Framework:

Library    TestNotification    url/webhook    plataforma    end_suite

Argumentos:

- url/webhook:

De acordo com a plataforma desejada, informe a URL. Caso utilize Google, Slack ou Telegram, envie um webhook; para uso em e-mails, utilize a URL do servidor SMTP.

- plataforma:

Google, Slack, Telegram ou Email. Informe a plataforma para a qual deseja receber as notificações.

- end_suite:

Envia notificação ao final de cada suite com o resumo da execução da suíte.

Exemplos de Plataformas e Parâmetros

  • Google Chat:
    Library TestNotification         https://chat.googleapis.com/v1/spaces/ASASssapasmc.com.br     google      end_suite
    
  • Slack:
    Library TestNotification https://hooks.slack.com/services/EQE23EWQ12/dsaSDAD/VgS06iIiwmL slack end_suite
    
  • Telegram:
    Library TestNotification https://api.telegram.org/bot TOKEN CHAT_ID telegram end_suite
    
  • Email:
    Library TestNotification smtp.gmail.com USERNAME PASSWORD 587 receiver@example.com email end_suite
    

Contribuindo

Sinta-se à vontade para contribuir para este projeto! Abra uma issue ou envie um pull request com suas sugestões.

Licença

Este projeto está licenciado sob a Licença MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework-testnotify-1.1.0.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file robotframework-testnotify-1.1.0.tar.gz.

File metadata

File hashes

Hashes for robotframework-testnotify-1.1.0.tar.gz
Algorithm Hash digest
SHA256 792090b9ad22ccf711b9c1832472c257aa08c371010f2f980f4a1a2a3795078b
MD5 05d8703b585e0421633ebf1236e2f32b
BLAKE2b-256 42562863057f8b7289564a494f46bd46320fe7686bfcada7e887280a6dad2727

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page