Skip to content

How to configure Portman to be used with postman-to-k6? #542

Answered by thim81
thim81 asked this question in Q&A
Discussion options

You must be logged in to vote

K6-ready Postman collection

When leveraging Postman to generate K6 tests (via postman-to-k6 package), K6 throws the following error
group and check names may not contain '::' because the generated tests use pm.test("[POST]::/portal/v1/tenants/:tenantId/accounts - Status code is 2xx", function () uses "::" (as a seperator between the method & path).

The test name is build up using multiple parts:
[API method] :: API endpoint url - Test name

The multiple parts are useful for visual scanning the tests in Postman and in Unit test reports.

The "::" is being used as since it references the Portman targeting (https://github.com/apideck-libraries/portman#portman-targeting).

K6 cannot handle the …

Replies: 1 comment

Comment options

thim81
Jan 8, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by thim81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant