-
Hi @thim81 , When you are using portman to convert the OAI spec to a collection and then using postman-to-k6 - do you even bother running newman after using portman, or do you just use k6 for your contract/functional/fuzz/etc AND performance tests? Personally I'd like to separate the two; run contract/functional/etc on newman using portman, and run only perf tests on k6 using postman-to-k6 but it doesn't seem there is an easy separation. Do you have ideas, and what have you done practically? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
hi @chyde80 My addvice is use a pipeline that executes it as follow-up stages: So first run the contracts tests generated by Portman, via Newman The contract tests purpose is to validate the contracts of the API responses. This a diagram of how I typically use OpenAPI as the source for various outputs that are being generated. I use different Portman configs (YAML files) to generate compact (for K6) or extended (Newman) test suites. |
Beta Was this translation helpful? Give feedback.
hi @chyde80
My addvice is use a pipeline that executes it as follow-up stages:
So first run the contracts tests generated by Portman, via Newman
If these all pass, run performance tests via K6.
The contract tests purpose is to validate the contracts of the API responses.
The K6 tests purpose is to validate only the performance of the API, so that is why in K6 we only validate if the response times are within a threshold and if the responses match a 2xx response. We don't test through K6 the detailed content of the response or schema validations.
This a diagram of how I typically use OpenAPI as the source for various outputs that are being generated.
I use different Portman configs (YAML…