Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 3.76 KB

File metadata and controls

71 lines (44 loc) · 3.76 KB
description Send Cypress and Playwright tests results to Microsoft Teams
icon people-group

Microsoft Teams

Currents integration with Microsoft Team allows posting test results of your tests directly into MS Teams channels.

Cypress Tests Results in Microsoft Teams

How to enable Microsoft Teams integration?

In order to enable MS Teams integration and share test results to Teams channels, follow the steps:

  • Navigate to "Manage Project" section for the selected project
  • Click "Add Integration", and select "Microsoft Teams"
  • Enter the details of your Microsoft Teams Integration and click "Save"
  • Navigate to Manage Project > Integrations
  • Add Microsoft Teams integration and provide the details:
    • Microsoft Teams Webhook URL - Incoming Webhook URL, e.g. https://currents463.webhook.office.com/XXX/YYY/ZZZ. Read the guide to generate the URL.
    • Failed Runs Only - enabling the toggle would only send results for failed runs.
    • Events (Optional) - specify events that will trigger the integration and send the results. Leaving this field blank activates all the events.
  • Click Save to preserve the changes
Enabling Microsoft Teams Slack integration

Filtering MS Teams notifications based on Tags

{% hint style="info" %} Please note: We use glob patterns to evaluate the filters. Test your filtering rules using the playground. See examples for some popular filter patterns:

  • Include only tagA or tagB: (tagA|tagB)
  • Exclude tagA andtagB: !(tagA|tagB)
  • Include only tags starting with production: production*
  • Include only tags starting with smoke- or prod-: (smoke-*|prod-*) {% endhint %}

What events trigger notifications for MSTeams // Currents integration?

The following events trigger notifications for Microsoft Teams integration.

Run Start

It is triggered when a new run starts. If a run contains multiple groups, the notification will be triggered for each group.

Example of MS Teams notification for Cypress Run Start event

Run Finish

It is triggered when a run finishes its execution or when a run times out. If a run contains multiple groups, the notification will be triggered for each group. For timed out runs, the message will contain the last know results for the run or run group.

Example of MS Teams notification for Cypress Run Finished

Example of MS Teams notification for Cypress Run Finished with Timeout event

Run Canceled

Triggered when a run gets cancelled. If a run contains multiple groups, the notification will be triggered for each group. The message will contain the last know results for the run or run group.

Example of MS Teams notification for Cypress Run Canceled event

How to disable MS Teams integration?

To disable Microsoft Teams integration, simply delete the integration from the list of integrations.

FAQ

Can I have multiple MS Teams integration for the same project?

Yes, you can have multiple Microsoft Teams integrations for the same project.