/Dmoney-API-Automation-Rest-Assured

Rest-Assured is a popular choice for API automation due to its ease of use and extensive documentation. It integrates well with popular testing frameworks like JUnit, TestNG, and Cucumber, making it a valuable tool for any automation tester.

Primary LanguageJava

Dmoney-API-Automation-Rest-Assured

Rest Assured Automation:

Rest-Assured is an open-source Java-based library used for automating RESTful web services testing. It simplifies the process of sending HTTP requests and receiving responses from RESTful services, allowing testers to easily validate the functionality of their API endpoints.

Rest-Assured provides a domain-specific language (DSL) that enables testers to write readable and concise test scripts. The library supports various HTTP methods like GET, POST, PUT, DELETE, and more. It also supports common authentication methods like OAuth, Basic Authentication, and API Keys.

Automation steps:

  • Call login API
  • Create a new customer and an agent
  • Search by the customer phone number
  • Deposit money to the Agent from system
  • Deposit money by agent to customer
  • Check balance of customer
  • Check statement by trnxId
  • Withdraw money by customer and assert expected balance
  • Send money to another customer and assert expected balance
  • Check customer statement

Technology and Tool Used:

  • Rest-assured
  • TestNG
  • Java
  • Gradle
  • intellij idea
  • jackson-databind
  • Allure
  • lombok

Prerequisite:

  • JDK 8 or LTV
  • java IDE
  • configure JAVA_HOME and GRADLE_HOME

How to run this project:

  • Clone this project
  • Hit the following command: gradle clean test
  • Command for Allure Report
  • After run the project give the following command for generate Allure Report: `allure generate allure-results --clean -o allure-report and allure serve allure-results

Test cases:

Allure Report:

Azure-1

Azure-2

Azure-3

Azure-4