This repository contains a custom listener designed for the Robot Framework to enhance test management and immediacy in response. When a test case fails, the listener triggers an automatic notification to a specified Microsoft Teams channel using Webhooks. This ensures that the team is instantly alerted, enabling prompt investigation and action. like this
example
You can install robotframework-webhooks simply by running:
pip install robotframework-webhooks
How to Create Incoming Webhooks for MS-Teams.
- Open Apps in MS-Teams and seach for Workflows
- Choose an instant called Post to a channel when a webhook request is received
- Follow the steps. and choose a specific channel where error messages will be sent.
- At the end Microsoft Teams will generate a URL link for your webhook.
- Copy this URL and save it in your
robot.tomlfile using the following format:
[variables]
webhook_url = "PASTE-YOUR-URL-IN-HERE"
[listeners]
webhooks = []- You can add the listener inside the
robot.tomlfile, or you can call it directly using:
robot --listener webhooks <your test.robot>If you encounter any bugs, have questions, or want to suggest improvements, please don't hesitate to open an Issues. Your feedback is valuable and helps make this project better for everyone.
Thank you for checking out this project! If you appreciate the work put into it, a ⭐ would be greatly appreciated.