You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.
Value of 'counter' that was set in
the 'pm.environment' variable
should be replaced correctly in
the sent request data.
Actual Behavior
The 'counter' value of first '/echo/'
request is 'undefined'.
Steps to Reproduce the Problem
k6 run test.js
To fix this
I found that the problem is in below function
at the commented line (line contains pm[Var])
which can be fixed by replace it with
'pm.environment.get'.
Due to the inability to properly support this project, the k6 team has decided not to continue its development. The primary reason is that k6 scope has grown significantly with the launch of k6 extensions. The team is prioritizing extending k6 capabilities over the converters.
We suggest you post your issue at api-deck/postman-to-k6. The project is active and maintained on this fork.
I found that the updated value of variable 'counter'
in 'pm.environment' was not be replaced correctly
in the 'request body'.
Environment
Expected Behavior
Value of 'counter' that was set in
the 'pm.environment' variable
should be replaced correctly in
the sent request data.
Actual Behavior
The 'counter' value of first '/echo/'
request is 'undefined'.
Steps to Reproduce the Problem
To fix this
I found that the problem is in below function
at the commented line (line contains pm[Var])
which can be fixed by replace it with
'pm.environment.get'.
function evaluate(string) {
// return string.replace(expression.variables, (match, name) => pm[Var](name));
return string.replace(expression.variables, (match, name) => pm.environment.get(name));
}
test.js.txt
The text was updated successfully, but these errors were encountered: