-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is no way to access vusMax from setup function #1656
Comments
As per version 0.27.0
But no alternative was given to access actual options from the script. |
Sorry for causing you issues with that deprecation, unfortunately there wasn't a way to avoid making that breaking change to get For now, if you don't use any of the new complicated |
I totally love new k6 execution engine, you guys rock and addressed most of the stuff that came to my mind when I was using it. Thank you again for your prompt reply and working on K6 improvements, looking forward to see new features! |
I'm on somewhat of a spree pruning and consolidating old k6 issues 😅 So I'm going to close this in favor of #1320, where we already have a note about the specific problem (#1320 (comment)). I can't give any promises on when we'll deliver it yet, but it's a high priority issue for us so it's going to be done... soon ™️ 😅 Hopefully in the next k6 release or the one after it. |
Environment
Expected Behavior
We are on k6 version 0.26.2 and having trouble migrating to 0.28.0.
With new execution engine we no longer have access to options.vusMax that would allow us to prepare execution data for default function
export function setup() { console.log("vusMax", JSON.stringify(options.vusMax)); }
Actual Behavior
The variable is undefined now.
Steps to Reproduce the Problem
k6 run --config options.json test.js
Actual: the variable is not available
The text was updated successfully, but these errors were encountered: