Skip to content

Automation Testing | RESTful webservices | Java | RestAssured | OAuth 2.0 | Lombok | TestNG | Maven | Allure Reports | Java mail API | Design Patterns (Singleton) | Jenkins | Data-Driven Testing using JSON file | Expected Data using XML file

Notifications You must be signed in to change notification settings

MdMostofaKamal/RestAssuredTestNGFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestAssuredTestNGFramework

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

The tools and technology are used:

  • Rest Assured
  • TestNG
  • Java
  • Allure Reports
  • Hamcrest
  • jackson Api
  • Lombok

Prerequisites

  • 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

Project Run

  • Clone the repository
  • Open cmd in the root folder

Run the Automation Script by the following command:

mvn test -DBASE_URI="https://api.spotify.com" -DACCOUNT_BASE_URI="https://accounts.spotify.com"

After automation to view allure report , give the following commands:

allure serve target/allure-results

Allure report overview:

AllureReport1 AllureReport2 AllureReport3

About

Automation Testing | RESTful webservices | Java | RestAssured | OAuth 2.0 | Lombok | TestNG | Maven | Allure Reports | Java mail API | Design Patterns (Singleton) | Jenkins | Data-Driven Testing using JSON file | Expected Data using XML file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages