Questions tagged [locust]

Locust is a Python based load testing framework (http://locust.io/)

Locust is an open source load testing tool, where user behaviour is defined in pure Python code

862 questions
-3
votes
1 answer

Python: __init__() missing 1 required positional argument:

I am trying to run a test in locust, however I am getting the following exception: Python: __init__() missing 1 required positional argument: 'ecu_model_id'. I was writing the tests against other ones and they didn't have anything more in…
Beti
  • 175
  • 2
  • 10
-3
votes
1 answer

How to provide test data to a locustfile in Python for load testing

I have built an API using flask and want to do load testing using locust. Can anyone help me how to create it and do a load testing
Rahul Verma
  • 2,988
  • 2
  • 11
  • 26
-3
votes
1 answer

Facing 'NewConnectionError' while installing steup wheel in windows

I have installed Python on Windows. When I tried to install other packages (pip, setuptools, wheel) I got a 'NewConnectionError' (see attached image). These are my settings: OS: Windows Server 16 Standard Python version: 3.6.6 Locust version: pip…
-4
votes
1 answer

Setting a random value from a list in Python

Basic question, but how do I pick random values from this list: TS_IDs = { '69397': 30, '10259': 30, '87104': 30 } Using this function: def set_ts_id_random(): ts_id_random = print("random_ts_id:",…
Magnus Jensen
  • 905
  • 6
  • 36
  • 73
-4
votes
1 answer

locustio installed falid error: legacy-install-failure error: subprocess-exited-with-error

how to install locustio study_locust /usr/local/bin/python3.8 -m pip install locustio Looking in indexes: http://pypi.byted.org/simple/pypi/+simple Collecting locustio Downloading…
-4
votes
1 answer

Error while executing basic code in Locust

from locust import Locust, TaskSet def login(l): print("I am logged In") def logout(m): print("I am logged Out") class UserBehaviour(TaskSet): task=[login,logout] class User(Locust): task_set = UserBehaviour Error Message--- (venv)…
Sam
  • 1
  • 2
1 2 3
57
58