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

Test metrics are not preserved on Stop click in the UI #883

Closed
niconphantom opened this issue Sep 14, 2018 · 3 comments
Closed

Test metrics are not preserved on Stop click in the UI #883

niconphantom opened this issue Sep 14, 2018 · 3 comments
Labels

Comments

@niconphantom
Copy link

Description of issue / feature request

In Locust 0.8.1, when Stop button is clicked in the UI, RPS, latency and other test metrics are frozen and preserved until # of users is changed and another test is performed.

In 0.9.0 this is not the case and when Stop is clicked, RPS and other counters slowly go down from let's say X RPS to 0 RPS. This is super inconvenient when manual testing is performed and the test metrics should be documented.

More than that, if I export a CSV with request details right after I click stop and then download the same file after X seconds, I see totally different numbers. So it takes some time for counters to reach 0 and each file download shows inconsistent result.

Expected behavior

Test metrics should be preserved in the UI and on CSV download once the Stop button was clicked.

Actual behavior

Test metrics slowly change from X to 0 in both UI and on CSV download.

Steps to reproduce (for bug reports)

  1. Start any test with 1 master and X slaves on single machine with UI mode.
  2. Open UI and start the test. Let it run for some seconds until you see RPS value > than 0.
  3. Click Stop in the UI
  4. Wait some seconds and you should see RPS and other metrics slowly changing from X to 0.
@cyberw
Copy link
Collaborator

cyberw commented Nov 2, 2019

Closing due to inactivity.

@cyberw cyberw closed this as completed Nov 2, 2019
@heyman
Copy link
Member

heyman commented Nov 6, 2019

I just successfully reproduced this, and I do think it should be classified as a bug.

It's only reproducible when running Locust distributed.

@heyman
Copy link
Member

heyman commented Nov 6, 2019

Should be fixed by 3df524d.

@heyman heyman closed this as completed Nov 6, 2019
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

3 participants