filmov
tv
How to fast generate your API Test with OpenAPI Tools and Rest-Assured by Elias Nogueira

Показать описание
The creation of API Test Automation using Java and Rest-Assured might be boring because it always follows the same repeated pattern: creating the code to make the HTTP requests, the model classes used in the responses, the object mapping, and the tests.
With the usage of the OpenAPI Tools, we can quickly generate the client code and the test stubs, speeding up the development process.
You will also learn the possible problems during its adoption that can add more maintenance effort and how to solve it with abstractions.
Approaches You will learn how to use an OpenAPI specification to automatically generate the client code to use in your test, as we will call it basic usage. As the first improvement, you will learn how to use templates and automatically create custom client and test code. And as the ultimate improvement, you will learn how to decrease the maintenance and focus on a more business-driven development by creating abstractions on top of the client code. Everything will be hands-on.
Tools
Java 17 as a programming language
Rest-Assured as the API automation library
JUnit 5 as the testing support tool
Maven as a build and dependency management tool
Takeaways
Learn how to speed up the API test automation code
Learn how to better organize the API test framework by the application of abstraction
Have a concrete example that can be easily applied at work in any context
Elias Nogueira, Backbase
Recorded at Jfokus 2023 in Stockholm 7th of february
With the usage of the OpenAPI Tools, we can quickly generate the client code and the test stubs, speeding up the development process.
You will also learn the possible problems during its adoption that can add more maintenance effort and how to solve it with abstractions.
Approaches You will learn how to use an OpenAPI specification to automatically generate the client code to use in your test, as we will call it basic usage. As the first improvement, you will learn how to use templates and automatically create custom client and test code. And as the ultimate improvement, you will learn how to decrease the maintenance and focus on a more business-driven development by creating abstractions on top of the client code. Everything will be hands-on.
Tools
Java 17 as a programming language
Rest-Assured as the API automation library
JUnit 5 as the testing support tool
Maven as a build and dependency management tool
Takeaways
Learn how to speed up the API test automation code
Learn how to better organize the API test framework by the application of abstraction
Have a concrete example that can be easily applied at work in any context
Elias Nogueira, Backbase
Recorded at Jfokus 2023 in Stockholm 7th of february
Комментарии