Skip to content

This project is used to generate the Automation script for Rest Assured framework from Swagger JSON

Notifications You must be signed in to change notification settings

jgsudhakar735/RestAssured-Swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestAssured-Swagger

This project is used to generate the Automation script for Rest Assured framework from Swagger Json

What is the purpose of this project?

Every software development group tests its products, yet delivered software always has defects. Test engineers strive to catch them before the product is released but they always creep in and they often reappear, even with the best manual testing processes. Test Automation software is the best way to increase the effectiveness, efficiency and coverage of your software testing.

In the consideration of the same, As most of the companies are moving towards microservices, and also putting lots of the efforts to create a descriptive and easy understandable Swagger Document.

This project will Generate Rest Assured Test Cases from the swagger json file.

What are all covered?

  1. This Project will be Generate the Rest Assured Java Code from the Swagger JSon file.
  2. We can generate specific api / module Test cases.
  3. Used Extent Report for Reporting purpose.
  4. Listners added to capture the Report Data.
  5. Request, Response, Query , Path Parameters, and URL will be added to the Report Module based on teh consiguration.
  6. Native Test Cases covered based on the required fields from the Swagger data.

How to use this?

  1. Download/ fork project.
  2. Import the project to your favourite Development IDE (STS/Eclipse/Intellij IDEA) or on your choice.
  3. Read the constant.properties. Change the consiguration according to your use case.
  4. Open the AutoMationCodeGen java class and RUN after placing the Swagger Json in the class path.

Configuration

  1. To Configure the specific module to generate the code . Need to add the config of API Path (Ex: /api/student)

2. To generate Negative Test Case from the swagger Enable the below flag .

3. To Audit the Request, Response, Query , Path Parameters, and URL will be added to the Report Module , do enable the below configuration.

How Does Report looks like?

  1. For reporting purpose we have used Extent Report(https://extentreports.com/).
  2. In this project, we have used 4.0.6 library.

3. For any customization / better reporting purpose please do check in the Extent Reports

About

This project is used to generate the Automation script for Rest Assured framework from Swagger JSON

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published