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.
- 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
- Rest-assured
- TestNG
- Java
- Gradle
- intellij idea
- jackson-databind
- Allure
- lombok
- JDK 8 or LTV
- java IDE
- configure JAVA_HOME and GRADLE_HOME
- 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