-
Notifications
You must be signed in to change notification settings - Fork 3k
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
After running the locust, on UI can not see any aggregation report, although the request is successful #1953
Comments
Have you checked the command line output? Try formatting your code, I cant really read it... |
output is 'status_code is : 200'
class Website(HttpUser): |
If you use catch_response you must use a with-block and do the response.success()/.failure() in that block. See http://docs.locust.io/en/latest/writing-a-locustfile.html#validating-responses |
OK got it, after use the with-block had fixed it . Tx |
…s() without using a with block (helps with some misunderstandings, e.g. #1953)
…s() without using a with block (helps with some misunderstandings, e.g. #1953)
…s() without using a with block (helps with some misunderstandings, e.g. #1953)
…s() without using a with block (helps with some misunderstandings, e.g. #1953)
…s() without using a with block (helps with some misunderstandings, e.g. #1953)
Sorry about the never ending commits/force-pushes :P |
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
`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"`
The text was updated successfully, but these errors were encountered: