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

archive converts duration in stages #241

Closed
caalle opened this issue Jun 8, 2017 · 0 comments
Closed

archive converts duration in stages #241

caalle opened this issue Jun 8, 2017 · 0 comments

Comments

@caalle
Copy link
Contributor

caalle commented Jun 8, 2017

When running k6 archive script.js it converts duration in stages to ms(?) instead of keeping original value. If duration is set in options or from the CLI it keeps the given value, eg 20s.

Example script:

export let options = {
  vus: 15,
  duration: '20s',
  stages: [{
    duration: '15s',
    target: 10
  }]
};

export default function() {};

Produce:

{
  "type": "js",
  "options": {
    "paused": null,
    "vus": 15,
    "vusMax": null,
    "duration": "20s",
    "iterations": null,
    "stages": [
      {
        "duration": 15000000000,
        "target": 10
      }
    ],
    "linger": null,
    "noUsageReport": null,
    "maxRedirects": null,
    "insecureSkipTLSVerify": null,
    "noConnectionReuse": null,
    "userAgent": null,
    "throw": null,
    "thresholds": null,
    }
  },
  "filename": "script.js",
  "pwd": "."
}
@liclac liclac closed this as completed in 100c98e Jun 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant