Download presentation
Presentation is loading. Please wait.
1
Automated Automation of REST APIs
Harshit Kohli Amit Chauhan
2
APIs vs WebServices F.R.I.E.N.D.S JOEY
3
APIs vs WebServices Web Services are a subset of the generic term API(Application Programming Interface) All Web Services are APIs but all APIs are not WebServices A Web Service is simply an API wrapped in HTTP APIs – Selenium, Rest Assured Web Services – Google Maps REST API, GitHub REST API
4
REST
5
Why REST APIs ? Easy to build Easy to use Fast
6
Swagger Interface to REST APIs allowing discovery of the capabilities offered Industry Standard for API documentation Offers an interactive console to “try” out the API Developer and Tester friendly
7
Testing REST APIs
8
Testing REST APIs (the automated way!)
9
Ingredient 1 – REST Assured Wrappers
Break Rest Assured calls into parts :– Create Request Execute Validate Response API Object Model (AOM) on similar lines of Page Object Model (POM) Reusability of Code Better Maintenance
10
Ingredient 1 – REST Assured Wrappers
11
Ingredient 1 – REST Assured Wrappers
12
Ingredient 2 – Swagger Parser
Parse the Swagger documentation using its JSON
13
Ingredient 2 – Swagger Parser
Read JSON using :- JsonPath ( JsonSimple (
14
Ingredient 3 – Auto Generation of Code
JavaPoet ( JavaPoet is a Java library for generating .java source files. It offers models for classes & interfaces, fields, methods & constructors, parameters and annotations. Sample code:
15
Ingredient 3 – Auto Generation of Code
Jsonschema2pojo ( Generates Plain Old Java Objects from JSON
16
Ingredient 4 – JavaFX GUI
Used to create cross platform rich user interfaces Easy to create UI through Scene Builder CSS Support – CSS Styling can be applied to elements(just like Web!) Embraces MVC Design Pattern Fast!
17
Ingredient 4 – JavaFX GUI
Steps to create a JavaFX Application in IntelliJ ( Create a JavaFX Application in IntelliJ Update FXML using Scene Builder( Add code to Controller class
18
Open Source version coming soon…
19
Questions ?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.