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
0
votes
1 answer

Default install of Python Locust throws exception

Operating System: CentOS 7.0 x64 Interpreter: Python 3.4.1 compiled from source with --enable-shared Example command: $ python3.4 -c "import locust" Traceback: Traceback (most recent call last): File "", line 1, in File…
Vasili Syrakis
  • 9,321
  • 1
  • 39
  • 56
0
votes
1 answer

How to get user information of the user while running load tests in locust

I provide number of users=12 and hatch rate=2. How can I get user id(s) of all users hitting my web page, as I would like to do some customizations based on the object names which are getting created (say an article title). How to pass user…
selvi
  • 1,271
  • 2
  • 21
  • 41
0
votes
1 answer

Locust - Python load testing. No documentation provided; so what do the ramping terms mean?

Locust gives the option to ramp up wherein you need to enter certain input details. I didn't find any documentation explaining the following terms whereas the other ones (not mentioned) seem self-explanatory: Ramping Hatch stride Precision (min…
L P
  • 1,776
  • 5
  • 25
  • 46
-1
votes
0 answers

How locust.exe file is generated?

I am learning how to build my own python packages and trying to understand how locust python code is converted to locust.exe file? I know about PyInstaller, but there is no pyinstaller mentions in the locust repo. The package itself does not contain…
-1
votes
1 answer

How do I write a POST request for this page?

I'm 'leaning' locust and I need to use it to swarm a website. but I don't know what format my post request should be. here is a photo of payload in an example _csrf: longToken== Login[username]: username Login[password]: password Login[rememberMe]:…
-1
votes
1 answer

Can locust make n requests per user?

How can I run a Locust load test with n number of users, where each user has a unique token that is used to make requests? headers = { 'Authorization': 'Bearer '+ token } response = self.client.put(f"/api/{id}/like",…
birsanzhar
  • 11
  • 4
-1
votes
1 answer

Load Testing with Locust - Custom shape

Hi I need to perform load testing on my e-commerce application deployed using kubernetes, I need to find realistic signals that tests the performance of my application. In the repo of locust.io, I found this load shape called double_wave and with it…
-1
votes
1 answer

TypeError: () missing 1 required positional argument: 'instance' in Locust

I need to loadtest an Odoo Environment and I have written a test class with different methods in it. Currently I'm trying to test this stuff locally but I'm running in a error that I don't understand right now. Traceback (most recent call last): …
-1
votes
1 answer

Unable to `pip install` locust on M1 MacBook Pro on Monterey 12.3

2021 MacBook Pro, Apple M1 Max Chip, Monterey 12.3 python: 3.8.9 pip: 22.2.2 locust: 2.12.1 it looks like there's an error installing one of the dependencies - gevent Building wheel for gevent (pyproject.toml) did not run successfully.
pbenmoser4
  • 21
  • 3
-1
votes
1 answer

Locust 'Request time' vs 'Response time' for single request

I have been working on an update of the YottaDB web framework benchmarks. I am having trouble working out the difference between locust request times and response times. This answer implies that response time includes all requests to that…
Berwyn
  • 151
  • 7
-1
votes
1 answer

Locust performance graping solutions

I've created a locust script to hit our most popular end points. I am wanting to do advance graphing since currently the default locust graphing is minimal. For example, maybe show a trend of a graph showing each end point of the average ms from low…
-1
votes
1 answer

How to put for Multiple users each users take unique value for each iteration in Csvfile using python

I have to take unique value for each users in csv for each iteration. Will you prefer any suggestions it would be better for my next process...
-1
votes
1 answer

How to export locust execution ran in a pipeline to a slack channel?

This is my first question on stack overflow. I'm trying to create a CI pipeline measuring the performance of our environment. I've managed to create a locust file thats executing a given scenario. And right now I trying to integrate the pipeline…
Adam O.
  • 3
  • 3
-1
votes
1 answer

How to create and use custom command line parameters in locust

I was able to add custom command line parameters to locust script like below - ''' @events.init_command_line_parser.add_listener def init_parser(parser): parser.add_argument( '--custom-argument', help="It's working" ) ''' But I am unable to use the…
-1
votes
1 answer

Windows 10 python Locust 'locust' is not recognized as the name of a cmdlet, function

I am following this tutorial: https://docs.locust.io/en/latest/installation.html Python version 3.9.4, used Visual Studio Code Installed using pip3 install locust then paste and run locust -V and I see: what am I doing wrong?