Leapwork can send test results notification to Microsoft Teams and Slack using their Webhooks/API. Webhooks are a type of event-driven API that lets you push and pull information between different types of apps.
Below is the step by step process to create Webhook in Team and use it in Leapwork Schedule:
Create Webhook in Team:
- The first step is to add a Webhook to your Microsoft Teams channel, for that open your channel and click Connectors as shown below.
- After that Click Configure button in Connectors window in front of 'Incoming Webhook'
- You’ll give the Incoming Webhook Name, a custom logo and click Create button.
- Then your Webhook will provide a unique URL to receive the information you push from other apps like Leapwork Schedule: Copy the URL now.
- Click Done and Close All windows.
Using Webhook in Leapwork:
Now that you have a URL for your Webhook, you can use it on Scheduler Action "Send HTTP(S) request" as shown below.
- Edit or Create New schedule
- Go To 'Actions' tab
- Condition : Choose as per requirement
- Action: Send HTTP(S) request
- URL: Past the above copied URL in the text box https://outlook.office.com/webhook/ae816896-5ttt-45daa-8f44-1dd1b16b7791@68668-efca-410e-5555-07e7e52266f8/IncomingWebhook/1eacba7756789677c0285161a88/8777564f-1fd1-44f3-823f-0adfcadd225e
- Header: Content-Type: application/json
- Post Variable: { "type": "message", "text": "Test Status : Case Passed: Token, Cases failed Token."}
Note: Token can be replaced by Leapwork Tokens by Right Click and Insert Token. - Save and Run your test.
Post test run is completed Leapwork will automatically call the Webhook and post a message in Teams, example message is shown below.
For any clarification, please contact our Priority Support.
Comments
0 comments
Please sign in to leave a comment.