From the course: Advanced Scripting for Testers: Local Data, Spreadsheets, and Reporting

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Posting a report to Slack

Posting a report to Slack

- [Instructor] Now that you know how to send a message to Slack, let's look at how to add some additional information so that we can post an actual test report to our Slack channel. In order to do that, we need to make a couple of changes to our testing bot, so I'm going to go to the OAuth and permissions tab, and I'm going to scroll down to the scopes here, and I'm going to make sure that I have this files right scope. So you can add an OAuth scope here and type in to search this list and find the files:write scope. When you change this, Slack will prompt you to reinstall the app and so go ahead and do that. And then you need to copy your bot user OAuth token. This is blurred out because you don't need to see mine, but you can copy your own from here. I've stored my bot OAuth token in an environment variable called Slack Bot Token. So we'll go ahead and use that environment variable in here so I'll create Slack token and I'm going to get it from environ, and I'll get it using Slack…

Contents