Introduction
Slack is one of the most popular collaboration platforms used by organizations to communicate, automate notifications, and integrate with various applications. One of its most useful features is Incoming Webhooks, which allow external applications to send messages directly into Slack channels.
In this blog, we’ll set up Slack and Integrate it with DevOps Test Hub (Test Hub):
· Create a Slack Workspace
· Create a Slack Channel
· Create a Slack App
· Enable Incoming Webhooks
· Generate a Webhook URL
· Test the webhook using Postman
· Integrating Slack with Test Hub
Step 1: Create a Slack Workspace
A Slack Workspace is the environment where your team communicates. Think of it as your organization’s private collaboration space.
Navigate to Slack
Open your browser and visit: https://slack.com
Click Get Started or Sign Up.
Sign Up
· Enter your email address.
· Verify the OTP sent to your email.
· Enter your name.
· Create a workspace.
Example:
Workspace Name: ParanshaWorkspace
Once completed, Slack creates your workspace.

Step 2: Create a Channel
· Channels help organize conversations.
· Click the + icon next to Channels.
· Create a new channel and Set the Visibility


· You should now have:
Workspace: #webhook-testing

This channel will receive messages from the webhook.
Step 3: Create a Slack App
A Slack App is an application that integrates with your Slack workspace. It can send messages, receive events, create bots, and communicate with external applications.
Open the Slack API Portal
· Navigate to: https://api.slack.com/apps
· Click: Create New App

· Choose: Blank App
· Provide the following details:
App Name: TestHub_Webhook
· Select your workspace and click Create App.
· Your Slack App has now been created.

Step 4: Enable Incoming Webhooks
· On the left navigation panel, select: Incoming Webhooks
· Locate the option: Activate Incoming Webhooks
· Turn the toggle ON.
· This enables your Slack App to receive HTTP requests from external applications.

Step 5: Create a Webhook
· Scroll to the bottom of the page.
· Click: Add New Webhook to Workspace
· Slack will ask you to choose a channel. Select: #webhook-testing
· Click Allow.
· Slack generates a unique webhook URL similar to:
https://hooks.slack.com/services/TXXXXXXXX/BXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX
Important: Treat this URL as a secret. Anyone with access to this URL can post messages to your Slack channel.

Step 6: Test the Webhook Using Postman
· Open Postman.
· Create a new request.
· URL: Paste the Slack Webhook URL generated in the previous step.
· Headers: Content-Type: application/json
· Request Body
Select Body → Raw → JSON and enter:
{
"text": "Hello Slack! My first webhook is working."
}
· Click Send.

Step 7: Verify the Message
· Open your Slack workspace.
· Navigate to: #webhook-testing
· You should see a message similar to:
“Hello Slack! My first webhook is working.”
· Congratulations! Your first Slack webhook has successfully posted a message.

Step 8: Integrating Test Hub with Slack
Navigate to Test Hub → Select the Project → Manage → Webhooks.
- Click New Template to create a template.

- Provide a suitable Name for the template.

- Under Channel Type, select Create a new channel.
- Provide a Channel Name.
- Select the required Event.
- Navigate to the Body section, select Slack, and retain the default configuration.

- Navigate back to Webhooks, click Create New Webhook, and provide the required details.

- Save the webhook configuration.

- Trigger the selected event and verify that the corresponding notification is received in the configured Slack channel. Check the message received in Slack.


By integrating Slack with DevOps Test Hub using webhooks, teams can receive real-time notifications for selected Test Hub events directly in their Slack channels. This integration helps improve visibility, enables quicker responses, and keeps teams informed without the need to continuously monitor Test Hub.