Skip to content
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

Add option to persist cookies across VU iterations #622

Closed
robingustafsson opened this issue May 14, 2018 · 1 comment · Fixed by #729
Closed

Add option to persist cookies across VU iterations #622

robingustafsson opened this issue May 14, 2018 · 1 comment · Fixed by #729
Labels

Comments

@robingustafsson
Copy link
Member

robingustafsson commented May 14, 2018

Currently k6 clears all cookies when a VU iteration ends, before the next one begins [1]. We should make this configurable (session cookies should probably still be discarded though).

Something along the lines of:
k6 run --persist-cookies script.js

In-script option:

export let options = {
    persistCookies: true|false
};

[1] - https://github.com/loadimpact/k6/blob/master/js/runner.go#L319

@na--
Copy link
Member

na-- commented May 15, 2018

As we briefly discussed yesterday, maybe the actual option name should be something like --no-cookies-reset, so we don't add a --yes-something option to the current mix of mostly --no-something options. Just adding it here so we don't forget to consider it when implementing this.

@robingustafsson robingustafsson added this to the v1.0.0 milestone Jul 6, 2018
@luizbafilho luizbafilho self-assigned this Jul 30, 2018
@na-- na-- removed this from the v1.0.0 milestone Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants