Skip to main content

Library for sending notifications to different platforms during or after Robot Framework tests execution.

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

test_notification_library-1.2.1.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file test_notification_library-1.2.1.tar.gz.

File metadata

File hashes

Hashes for test_notification_library-1.2.1.tar.gz
Algorithm Hash digest
SHA256 fbbdcc7102edc82c76b440649661ff77de4b4384ed1577cba789c7f94ed3be85
MD5 b4dfd556353194da24206513c46e13b4
BLAKE2b-256 d0d415519aeb760e2f21b615e7ddeab74326ddc6e99790a29ea1965a6fbced7f

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