Slack
Connect Slack to get test results in a channel and to ask Cofactor questions and start tests from a thread.
Connect Slack to send your suite results to a channel. In a Slack thread you can also ask Cofactor questions and have it start a test.
Connect Slack
An organization admin connects Slack. An organization connects one Slack workspace.
First, add Cofactor to Slack.
Open Settings, then Slack, select Add to Slack and approve the Cofactor app.
Then set up the channel in Settings, Slack.
-
Pick a channel. In Notification Channel, choose the channel for messages. Public channels are listed. A private channel is listed once the Cofactor app is a member, so invite the app to it first.
-
Send a test message. Select Send Test Message.
Send suite results to a channel
Suite results reach Slack through suite completion alerts. Open Suites, then Alerts, select New alert and add a Slack destination. See Reports.
Work with Cofactor in a thread
Mention the Cofactor app in a channel, or message it directly. Reply in the same thread to keep the conversation going. In a thread where nobody addressed the app, it stays quiet. Examples of what you can ask:
- look up a Jira, Linear or other ticket by its key or by words in its title;
- show your recent test runs;
- add a saved test to Regression, or take it out;
- propose a change to a saved test. The change waits for someone to accept it in the flow designer.
Link Slack users to Cofactor users
In Settings, Slack, User Attribution, turn on Require Slack users to link their Cofactor account. With it on, Cofactor runs write actions such as starting tests only for Slack users who linked their account, and it asks anyone else to sign in once. With it off, an unlinked user's actions are credited to the person who installed Slack, or the first organization admin.
Check it worked
The test message arrives in the channel, and Settings, Slack shows the Connected badge and the workspace name. For alerts, run a suite with a failing test and look for the result in the channel.
Fix a problem
| Symptom | What to check |
|---|---|
| The channel is not in the list | It is probably private. Invite the Cofactor app to it. |
| No test message | Pick a channel first. Send Test Message is off until you do. |
| Cofactor does not answer in a thread | Mention the app in the thread, or message it directly. It stays quiet in a thread where nobody addressed it. |
| Personal alerts do not arrive | Your Slack account is not linked to Cofactor. |
Disconnect Slack
Select Disconnect in Settings, Slack, or run cofactor slack disconnect. Alerts to Slack stop until you connect a workspace again. Only an organization admin can connect or disconnect Slack.