We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Attached my test script and screenshot. Locust didn't count the whole number for failed request and just show every Exception on WEB GUI.
`#encoding=utf-8 from locust import HttpLocust, TaskSet, task , events import requests import time
class WebsiteTasks(TaskSet):
@task def page(self): start_time = time.time() try: requests.get("http://127.0.0.1:8000/index") except Exception,e: total_time = int((time.time() - start_time) * 1000) events.request_failure.fire(request_type="测试GET请求", name="http://127.0.0.1:8000/index", response_time=total_time, exception=e) else: total_time = int((time.time() - start_time) * 1000) events.request_success.fire(request_type="测试GET请求", name="http://127.0.0.1:8000/index", response_time=total_time, response_length=0) @task def index(self): self.client.get("http://httpbin.org/cookies/set/sessioncookie/123456789")
class WebsiteUser(HttpLocust):
host = '' task_set = WebsiteTasks min_wait = 500 max_wait = 500`
The text was updated successfully, but these errors were encountered:
All of the Exception is the same type of NewConnectionError. ~~
Sorry, something went wrong.
This was most likely related to #451 and #452, which has now been fixed.
No branches or pull requests
Attached my test script and screenshot. Locust didn't count the whole number for failed request and just show every Exception on WEB GUI.
`#encoding=utf-8
from locust import HttpLocust, TaskSet, task , events
import requests
import time
class WebsiteTasks(TaskSet):
class WebsiteUser(HttpLocust):
Main page
Failure page
The text was updated successfully, but these errors were encountered: