Replies: 1 comment 1 reply
-
hi @pongohaja With Portman, we tried to provide a tool that automates the maintenance of API tests and assists with the repetitive code you would have to write. What typically happens:
Next to that, you would also have to maintain your documentation and other documents that your API users would need to be able to use your API. With a "Spec driven" approach, you put the OpenAPI document at the center and use all the information available in the OAS document to automate as much as possible. You could even go so far as to generate your API code based on the OpenAPI. This is a diagram of how I typically use OpenAPI as the source for various outputs that are being generated. You want to offer your API users the best possible DX (developer experience) by making sure that the documentation shows the latest changes, that the changes are all tested, and that what they are experiencing when using your API is the same as what has been described in your documentation. Keeping everything in sync is a time-consuming and repetitive task. Portman helps you to guard the API contracts so that they match your documentation, which reflects your code (or vice versa).
I wrote a blog post about the advantages of "spec-driven" development, and in my experience, using OpenAPI in combination with Portman helps with the automation of such flows and reduces manual maintenance. I also cover the usage and benefits of using Portman in a Podcast with the K6 team: |
Beta Was this translation helpful? Give feedback.
-
I have used Portman for some time to convert an OpenAPI document to a Postman collection (PC), upload the PC to the Postman app, and run the PC with Newman in a CI/CD pipeline.
Assume that our backend source code is updated with a changed API. Then it is compiled and started, the OpenAPI Specification (OAS) is downloaded and a PC is created.
Since the PC is based on the new API, I still wonder what kind of errors are found compared to not using Portman.
My experience so far is that I find deficiencies in the code when adapting the Portman Config file to the new API, but the CI pipeline does not find so much.
What are your experiences?
What kind of faults have you found, or are expected to be found?
What is the main benefit of testing with Portman?
I hope you share your insights with me and others.
Beta Was this translation helpful? Give feedback.
All reactions