Skip to content

Using portman-->k6 #102

Answered by thim81
chyde80 asked this question in Q&A
Feb 22, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@chyde80
Comment options

@thim81
Comment options

@chyde80
Comment options

@chyde80
Comment options

Answer selected by chyde80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants