An API is tested by using REST Assured framework integrated with TestNG as testing framework for validation purpose. Here, the status codes, validation messages and the flow of API is tested using a Spotify API where there is Authentication,Get Token,Renew Access Token,creating,Geting and Updating features
- Rest Assured
- TestNG
- Java
- Allure Reports
- Hamcrest
- jackson Api
- Lombok
- Install jdk 11 or any LTS versio
- Configure JAVA_HOME and MAVEN_HOME
- Download Allure and configure environment path
- Download Jenkins and configure it with cmd commannd
- Clone the repository
- Open cmd in the root folder
mvn test -DBASE_URI="https://api.spotify.com" -DACCOUNT_BASE_URI="https://accounts.spotify.com"
allure serve target/allure-results