LEAPWORK can send test results notification to 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 Slack and use it in LEAPWORK Schedule:
Steps to create Webhook in Slack:
- Open following URL: https://slack.com/signin?redir=%2Fservices%2Fnew%2Fincoming-webhook
- Sign in to your Slack workspace
- Enter your credentials
- On incoming WebHooks page select channel to post message.
- Click Add 'Incoming WebHooks integration' button
- On next page go to Integration settings section, Copy the URL and if required change the Name and Image of sender WebHook, press Save afterwards.
Using Slack 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 textbox https://hooks.slack.com/services/TAAG7L8G/BAE0V5YQZ/ACikJXaKGHJK9Srm9CD9OB
- Header: Content-Type: application/json
- Post Variable: {"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 Slack, example message is shown below.
For any clarification, please contact our Priority Support.
Comments
0 comments
Please sign in to leave a comment.