Code Monkey home page Code Monkey logo

majhar-98 / dmoney-api-automation-rest-assured Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 33 KB

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.

Java 100.00%
allure-report gradle intellij jackson-databind java javafaker jdk lombok restassured selenium

dmoney-api-automation-rest-assured's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.