Testing a REST API, many testers will have experience with this. In many cases, this means going to the API's Swagger page and writing test cases based on that. But is all that manual work really necessary? In this talk, I introduce two libraries I developed to automate much of this manual work.
For an implementation of a JSON REST API based on the OpenAPI 3.0 standard, I was tasked with validating that the API was indeed implemented according to the standard. Knowing that the openapi document (Swagger document) contains all the information about the available endpoints and what data is sent/received, I looked for a way to generate and execute the test cases instead of writing them.
The result is an open source library for the Robot Framework, the robotframework-openapidriver that is available on the MarketSquare. After releasing OpenApiDriver, I realize that much of the core logic of the library would also be valuable to other library developers and I decided to extract this logic and publish it as a separate library, robotframework-openapi-libcore
In this presentation, I will give a brief introduction to these libraries.
Негізгі бет RoboCon 2022 - 2.09 Introducing OpenApiDriver...and OpenApiLibCore!
Пікірлер