Skip to content

Rest Assured Practice API Test Automation for 2 Rest APIs ==> 🌐 FakeRESTApi & 🌐 RestfulBookerApi

Notifications You must be signed in to change notification settings

ahmedkhaled14/RestAssuredPractice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

test-light

✨ Rest Assured Practice ✨

πŸ“ The main Frameworks included in the project:

  • RestAssured

  • TestNG

  • Allure Report

🎨 Project Design:

  • Object Model design pattern

  • Data Driven framework

  • Java Docs

πŸ—οΈ Project Structure

rest

πŸ”Š this project included

πŸ“¦οΈ 3 packages in src/main/java

  • FakeRestApi ( object Model Design )
  • Restfulbooker ( object Model Design )
  • Utils ( used to read data from external json file )

πŸ“¦οΈ 3 packages in src/test/java

  • FakeRestApiTest ( object Model Design )
  • RestfulbookerApiTest ( object Model Design )
  • Practice ( linear Design )

🧱 2 folders in src/test/resources/TestData

  • ActivitiesTestData
  • BookingTestData

βš—οΈ 2 xml files

  • pom.xml ( XML file that contains information about the project and configuration details used by Maven to build the project)
  • testng.xml ( is the configuration for TestNG testing framework ( defining test suite )

πŸ—ƒοΈ Documentation

🚧 Requirements

  • Java JDK-19
  • RestAssured 5.3.0
  • Maven

πŸš€ Running Tests

Run All tests open a terminal on the project root path:

  1. Run API tests: mvn clean test
  2. Generate reports: mvn allure:serve or allure serve
  • πŸ“„ Allure Report:

api

Releases

No releases published

Packages

No packages published

Languages