After running the locust, on UI can not see any aggregation report, although the request is successful
See original GitHub issueDescribe 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”`
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK got it, after use the with-block had fixed it . Tx
Sorry about the never ending commits/force-pushes 😛