This project has automated tests for Slack channel apis.
Test suite flow: ● Create a new Channel ● Join the newly created Channel ● Rename the Channel ● List all Channels and Validate if the Channel name has changed successfully ● Archive the Channel ● Validate if the Channel is archived successfully
- Slack API https://api.slack.com/methods
This project uses a number of open source projects to work properly:
- Java
- TestNG
- Slf4j
- Lombok
Checkout the project from gitlab using following command
$ git clone https://github.com/shirishameka/SlackAPIAutomation.gitGet in-to the project folder
$ cd SlackAPIAutomationTo build the project and run the tests
$ mvn clean installTo only run the tests
$ mvn clean testTests write logs while they are running which provide further information about what happened if case of failure. These files reside in ./logs directory and can be viewed locally in your browser by navigating to that folder.
Note : Token will expire, hence we have to generate new token each time and modify it in "Constants file"
To Generate token : https://api.slack.com/legacy/custom-integrations/legacy-tokens