question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After running the locust, on UI can not see any aggregation report, although the request is successful

See original GitHub issue

Describe the bug

After pycharm executes the lock command, it goes to localhost: 8089 to configure concurrency and starts the pressure test. However, after the pressure test, the aggregation report page does not display any requests, although pycharm detects that the requests are successful

Expected behavior

It is hoped that the aggregation report can be displayed normally, and the data output by other performance is normal. The aggregation report can be generated and downloaded normally

Actual behavior

No requests are displayed, and it is unclear at the UI level how well the request action performs

Steps to reproduce

Environment

  • OS:Window10
  • Python version:3.9.7
  • Locust version: 2.5.0
  • Locust command line that you ran:locust -f .\loadtest\Loadtest-Suite.py
  • Locust file contents (anonymized if necessary): `class GetResume(TaskSet): @task
    def get_collection_id(self): headers = { “Accept”: “application/json” } params = { “c”: “web”, “pageNumber”: 0, “pageSize”: 2 } response = self.client.get(“xxxxxxx”, params=params, headers=headers, catch_response=True, verify=False) for i in range(1, 1000): print(f"test time is {i}" + " status_code is:" + str(response.status_code)) if “Success” in response.text: response.success() else: response.failure(“failed”)

class Website(HttpUser): tasks = [GetResume] min_wait = 1000 max_wait = 2000 host = “xxxxxxxxx”` image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Aiu-Springcommented, Dec 8, 2021

OK got it, after use the with-block had fixed it . Tx

0reactions
cyberwcommented, Dec 8, 2021

Sorry about the never ending commits/force-pushes 😛

Read more comments on GitHub >

github_iconTop Results From Across the Web

API — Locust 2.14.0 documentation
Class defining a set of tasks that a User will execute. When a TaskSet starts running, it will pick a task from the...
Read more >
Locust.io experiments — Emitting results to external DB
In this article, I'll try to show how to deal with cases where you would like to do more with the results —...
Read more >
How can we terminate the locust process based on num of ...
I have to do load test using locust.io for multiple APIs, so I want to execute 10 requests for each and every API...
Read more >
Locust - Read the Docs
Locust is an easy-to-use, distributed, user load testing tool. It is intended for load-testing web sites (or other systems).
Read more >
Automating & evaluating load testing with Locust and Keptn
Learn how to use Locust load testing and how to write powerful load tests in a simple way. We will then use Keptn...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found