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
I start a new locust test, set user number 10, swarm 5; after 1min, the user number reduce to 0, but RPS is stable.
stable test
Any websit to test, set user 10, swarm 5
class PressureTest(TaskSet): def setup(self): global headers headers = [{"Content-Type": "application/json"}] @task(100) def test1(self): query = {} with self.client.get('https://www.baidu.com', headers=headers, params=query, verify=False, catch_response=True) as resp: if resp.status_code == 200: if b'b' not in resp.content: resp.failure('Error: wrong response -- ' + resp.content.decode('utf-8')) else: resp.success() else: resp.failure('Error: wrong status code -- ' + str(resp.status_code)) class ApiTest(HttpLocust): host = '' task_set = PressureTest min_wait = 300 max_wait = 500 stop_timeout = 60
The text was updated successfully, but these errors were encountered:
Misunderstanding "stop_timeout", it's not the time to assert failure when response time exceed it.
Sorry, something went wrong.
No branches or pull requests
Description of issue
I start a new locust test, set user number 10, swarm 5; after 1min, the user number reduce to 0, but RPS is stable.
Expected behavior
stable test
Actual behavior
Environment settings
Steps to reproduce (for bug reports)
Any websit to test, set user 10, swarm 5
The text was updated successfully, but these errors were encountered: