Skip to content

alaktionov/spotify-test-automation-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Test Automation Framework written in Java for testing Spotify Web API and UI

  • The framework is just a showcase of a possible approach to testing Spotify Web UI and API
  • The framework covers only a few endpoints of Artists API, but can be easily extended for other APIs
  • The framework covers only basic Login functionality on UI, but can be easily extended for other UI functionalities
  • The framework has just a default profile with properties for prod env specified in application.yml (PASSWORD and CLIENT_SECRET values have been extracted to GitHub environments secrets)
  • The framework has a simple example of CI/CD pipeline

Technology stack

  • Java 21
  • Maven
  • Spring Boot
  • REST-Assured
  • JUnit5
  • Allure
  • GitHub Actions

Local test execution

Clone the repository:

git clone <repository-url>
cd <repository-name>

NOTE: Make sure to set baseApiUrl, clientId and clientSecret values for your user in application.yml

Compile the project:

mvn clean compile

Run tests:

mvn test

NOTE: tests are executed on Chrome by default. If you need to run them on another browser add the following parameter: -Dbrowser=firefox

Generate and view reports:

allure serve target/allure-results

Running Tests via GitHub Actions

  1. Go to the Actions tab
  2. Select the On-Demand Test Execution workflow
  3. Click Run workflow, choose the environment, and start the execution

Note: only prod is available for now

  1. When the run is complete, download attached report, unzip it and using the following command open:
allure serve allure-report
  1. Example of Allure report: image

About

Personal Test Automation Framework for Spotify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages