# Slack Reporting

We can report test run results to Slack, meaning any tests run outside of the Moropo UI (CI-CD, Scheduled, etc.).&#x20;

## Behaviour

Once configured, the integration posts a comment to a defined Slack channel upon completion of a test run. The comment will provide information about what settings the test run contained, the results of the test run, and a link to navigate to the Results Explorer on the Moropo platform.\ <br>

<figure><img src="https://1849561984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNrvYDqka9qiakmPqT4am%2Fuploads%2FRrBgmgfxgoWmQazwA9w1%2FScreenshot%202023-11-08%20at%2014.37.48.png?alt=media&#x26;token=b8bd5bcd-7467-4576-bcc6-2e92727718a9" alt=""><figcaption></figcaption></figure>

## Configuration

1. Navigate to the settings page at <https://app.moropo.com/settings?index=integrations>.&#x20;
2. Connect Moropo with your Slack workspace. Do this by clicking `Connect` on the Slack Integration card as below.

<figure><img src="https://1849561984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNrvYDqka9qiakmPqT4am%2Fuploads%2F34H0OQMIcUlKfZal8DiE%2FScreenshot%202023-11-08%20at%2010.42.17.png?alt=media&#x26;token=f3caa522-c6ba-43a6-b083-822b950a0503" alt=""><figcaption></figcaption></figure>

3. Slack will then open in a new tab and prompt you to sign in to your Slack workspace, follow these steps to sign in to your account.&#x20;

<figure><img src="https://1849561984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNrvYDqka9qiakmPqT4am%2Fuploads%2FGrCu0f2WkfHrxyKUdZRr%2FScreenshot%202023-11-08%20at%2011.23.46.png?alt=media&#x26;token=3dbf33cf-c03f-41f4-a7ac-850ff14b69e6" alt=""><figcaption></figcaption></figure>

4. Once you are signed in Slack it will prompt you to allow permissions for Moropo.

<figure><img src="https://1849561984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNrvYDqka9qiakmPqT4am%2Fuploads%2FzMhcGbyOVcMxnrfauVVg%2FScreenshot%202023-11-08%20at%2014.22.53.png?alt=media&#x26;token=b0db8e7b-c6c3-4bac-90b5-7d40a33d9b39" alt=""><figcaption></figcaption></figure>

5. Finally, you should be able to choose your Slack Channel from the drop-down menu. Once this is done the integration is complete! You'll get a message in the channel from the MoropoTestBot saying the Integration has been configured. If you need to connect to a private channel see [#posting-to-private-channels](#posting-to-private-channels "mention")

<figure><img src="https://1849561984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNrvYDqka9qiakmPqT4am%2Fuploads%2FekaLredRz0xVA8NhPGTB%2FScreenshot%202023-11-08%20at%2014.26.08.png?alt=media&#x26;token=b55bf655-db1d-4d41-93eb-d72c5836f27f" alt=""><figcaption></figcaption></figure>

## Posting to Private Channels

By default, you won't be able to select a private channel to post in. In order to make this available in the channel selection you'll need to invite the bot. You can do this by either;

1. Adding the bot to the channel via chat - you can do this by typing `@MoropoTestBot` in the private channel you want to invite them to.&#x20;
2. Adding the bot to the channel via settings - you can do this by navigating to the channel settings. Under the `Integrations` tab you can find the option to `Add apps`, this will open up a list where you can select the MoropoTestBot.
