Skip to content

make runner / user count available to LoadTestShape#1719

Merged
cyberw merged 4 commits intolocustio:masterfrom
msarahan:wait_times
Mar 3, 2021
Merged

make runner / user count available to LoadTestShape#1719
cyberw merged 4 commits intolocustio:masterfrom
msarahan:wait_times

Conversation

@msarahan
Copy link
Copy Markdown
Contributor

@msarahan msarahan commented Mar 1, 2021

Related to #1715

@msarahan
Copy link
Copy Markdown
Contributor Author

msarahan commented Mar 1, 2021

Here's a screenshot of running the example. The notable features are the plateaus at the 10, 20, and 10 user levels. We don't know what time it'll take to get there, but once we are there, we always sit there for the given pre-set time.

Screenshot from 2021-03-01 09-34-16

@cyberw
Copy link
Copy Markdown
Collaborator

cyberw commented Mar 1, 2021

Can you add a unit test?

@msarahan
Copy link
Copy Markdown
Contributor Author

msarahan commented Mar 1, 2021

I should probably also update the docs at https://docs.locust.io/en/latest/generating-custom-load-shape.html#generating-custom-load-shape to show this new function. I'll work on that a bit later.

@cyberw
Copy link
Copy Markdown
Collaborator

cyberw commented Mar 3, 2021

This looks good. Can you make runner a regular attribute (not _-prefixed). Maybe people will want to access some other attribute on the runner.

@cyberw cyberw merged commit fddfefe into locustio:master Mar 3, 2021
@cyberw
Copy link
Copy Markdown
Collaborator

cyberw commented Mar 3, 2021

nice!

@msarahan
Copy link
Copy Markdown
Contributor Author

msarahan commented Mar 3, 2021

Thanks for working with me on this. I'll close the other issue.

@msarahan msarahan deleted the wait_times branch March 3, 2021 15:59
@cyberw cyberw changed the title make user count available to LoadTestShape make runner / user count available to LoadTestShape Apr 4, 2021
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

Successfully merging this pull request may close these issues.

2 participants