Git Product home page Git Product logo

siddik-1997 / api-testing-on-dmoney-api-with-rest-assured Goto Github PK

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

This repository contains the source code for automated testing of Dmoney API using Rest Assured library. The tests cover various endpoints and scenarios, ensuring the API functions as expected. The project includes test suites, utilities for test data preparation, and configuration files for test execution.

Java 100.00%
gradle intellij java rest-api rest-assured allure-report commons-configuration2 jackson-databind testng-framework

api-testing-on-dmoney-api-with-rest-assured's Introduction

API-Testing-on-Dmoney-API-with-Rest-Assured

What is Rest Assured in API Automation?

Rest Assured is an open-source Java library used to test RESTful APIs. It provides a domain-specific language (DSL) for writing API tests in a simple and readable format. Rest Assured supports various HTTP methods such as GET, POST, PUT, DELETE, etc., and allows us to set request headers, query parameters, and request bodies. It also provides easy-to-use assertion methods to validate the response received from the server. Rest Assured is widely used in the industry for API testing due to its simplicity and effectiveness.

Why Rest Assured is popular choice for API Testing?

There are several reasons why Rest Assured is a popular choice for API testing:

  • Easy to Use: Rest Assured provides a simple and intuitive syntax for writing API tests, making it easy for both developers and testers to use.

  • Comprehensive Functionality: Rest Assured supports various HTTP methods and provides a wide range of assertions, making it easy to test various aspects of an API such as response status codes, response headers, response body, and more.

  • Integration: Rest Assured can be easily integrated with popular testing frameworks like JUnit and TestNG, making it easy to incorporate API tests into existing test suites.

  • Automation: Rest Assured allows for the automation of API tests, which can save time and resources by automating repetitive tasks and increasing test coverage.

  • Open-source: Rest Assured is an open-source library, which means it's free to use and has an active community of developers contributing to its development and maintenance.

Technology Used:

  • Rest Assured
  • commons-configuration
  • Jackson Databind
  • TestNG
  • Java
  • Gradle
  • intellij idea
  • Allure

How to run this project:

  • Clone this project
  • hit the following command: gradle clean test
  • for Allure Report hit: allure generate allure-results --clean -o allure-report and allure serve allure-results

Project Scenerio:

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

Test case Report based on Scenerio:

Allure Report:

Screenshot (43)

Screenshot (44)

Video Output:

2023-03-10.19-00-14.mp4

api-testing-on-dmoney-api-with-rest-assured's People

Contributors

siddik-1997 avatar

Stargazers

 avatar

Watchers

 avatar

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.