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

Setup function and test results #1508

Closed
yiss opened this issue Jun 16, 2020 · 2 comments
Closed

Setup function and test results #1508

yiss opened this issue Jun 16, 2020 · 2 comments
Labels

Comments

@yiss
Copy link

yiss commented Jun 16, 2020

Environment

  • k6 version: v0.26.2 (2020-03-18T11:45:39+0000/v0.26.2-0-g459da79e, go1.13.8, windows/amd64)
  • OS and version: Windows
  • Docker version and image, if applicable:

Expected Behavior

Before running my load tests I need some to create some records using a post method, so that the test data is dynamic. Normally I would expect that all the requests made in setup function to not be accounted for when displaying (metrics.http_req) since they're not part of the test (or the default function).

Actual Behavior

The time to prepare data is accounted for in the results

is there anyway to not have this since it affects the benchmarks of our API, beside using statically generated data ? Thank you

@yiss yiss added the bug label Jun 16, 2020
@imiric
Copy link
Contributor

imiric commented Jun 16, 2020

Hi, thanks for reporting this. It's a known issue: see #891 and #1321, particularly the workaround with tags mentioned in #891.

So I'll close this as duplicate, but feel free to follow those issues for updates. Currently the team is focused on a big upcoming release, but this feature is one of the top priorities after that.

@yiss
Copy link
Author

yiss commented Jun 16, 2020

@imiric Thank you for your response :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants