This project is used to generate the Automation script for Rest Assured framework from Swagger Json
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.
- This Project will be Generate the Rest Assured Java Code from the Swagger JSon file.
- We can generate specific api / module Test cases.
- Used Extent Report for Reporting purpose.
- Listners added to capture the Report Data.
- Request, Response, Query , Path Parameters, and URL will be added to the Report Module based on teh consiguration.
- Native Test Cases covered based on the required fields from the Swagger data.
- Download/ fork project.
- Import the project to your favourite Development IDE (STS/Eclipse/Intellij IDEA) or on your choice.
- Read the constant.properties. Change the consiguration according to your use case.
- Open the AutoMationCodeGen java class and RUN after placing the Swagger Json in the class path.
- To Configure the specific module to generate the code . Need to add the config of API Path (Ex: /api/student)
- For reporting purpose we have used Extent Report(https://extentreports.com/).
- In this project, we have used 4.0.6 library.