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

Locust worker starts doing requests before master finished wait for all workers

Could you please help me to find issue in my code? Or maybe this is a bug in Locust? What happens it that if I start master (with options that it is supposed to wait for 2 workers) and one worker, worker starts doing requests even before starting…
jhutar
  • 1,369
  • 2
  • 17
  • 32
0
votes
1 answer

Does Locust make use of IP Spoofing?

I'm running locust load test against my server, which has Cloudflare limit of 250 requests per second per IP (user). And I'm hitting that limit with following locust config: Users: 100 RPS is around 100 So, the question arises here is: Does…
0
votes
1 answer

Got text/plain for mimetype when upload image by requests/locust

When I use dev tool like Postman to upload file, my Express.js server using multer import multer from 'multer'; const upload = multer(); app.post('/api/upload-file', upload.single('file'), (req, res) => { console.log(req.file); …
Hongbo Miao
  • 45,290
  • 60
  • 174
  • 267
0
votes
2 answers

Inconsistent behavior between running Locust passing args on command line and load config file

If I pass the following args on a terminal window: locust --headless --master --expect-workers 5 -H http://localhost -u 100 -r 30 -t 20s -T "Test" -L DEBUG Locust initializes as expected and I'm able to launch workers on another terminal window…
Diego Bandeira
  • 101
  • 1
  • 6
0
votes
1 answer

How to include RPS in locust report

I noticed if the locust is run in no-web mode and csv stats is downloaded than there is no column for RPS. Is there any way to include RPS? Also, i wanted to generate a PDF/HTML report for locust .Is there any way to do the same? I have searched…
Sayen
  • 65
  • 1
  • 11
0
votes
4 answers

ImportError: cannot import name 'StopLocust' from 'locust.exception'

I'm getting an ImportError attempting to run a Locust/Selenium script: ImportError: cannot import name 'StopLocust' from 'locust.exception' Is there a package that I need to install? from realbrowserlocusts import ChromeLocust from…
0
votes
1 answer

Guidelines with Locust/Selenium and the number of browser sessions per/slave

I'm looking to build a test with 4000 browser sessions using a Locust/Selenium approach. I tried using the same approach using JMeter/Selenium using headless browsers and for many reasons I've come to the conclusion that it's not possible. I'm…
0
votes
1 answer

How to store stats into csv files programmatically in Locust.io

I am new to Locust and I am trying to programmatically incorporate the following CLI command into my script: locust -f locustfile.py --host http://X.W.Z.Y:9999/ --headless -u 100 --run-time 1m --stop-timeout 99 --csv "some-timestamp"…
user1024713
  • 31
  • 1
  • 2
0
votes
1 answer

I have installed Locust on ubuntu 18.04 when I check the Locust version I face below problem

I am facing the below issue my python version python3 --version Python 3.6.9 pip3 --version pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6) if I check the locust version I am facing the below error locust -v Traceback (most recent call…
Nagarjuna
  • 39
  • 6
0
votes
2 answers

Running locust with multiple users logging in

This is my code i did it for logging in with blaze demo it is a locust file tried to see for errors like this but no luck so see if you can help from locust import HttpUser,TaskSet,task,between import logging,sys User = [ …
Loopero
  • 31
  • 1
  • 5
0
votes
0 answers

Can't extract the cookie values in locust

I have the following code in locust.io def login(self): response = self.client.get("/oauth/app", headers={"grant_type":"authorization_code", "response_type":"code", "client_id":"tas_app_test","client_secret":"tas_app_test_secret",…
Moses Liao GZ
  • 1,556
  • 5
  • 20
  • 45
0
votes
1 answer

Using locust to simulate load test from android or iOS phones

Is there a way to simulate an android user agent in locust.io load testing? I have a server I need to load test and they check if the call is from an android or iOS phone
Moses Liao GZ
  • 1,556
  • 5
  • 20
  • 45
0
votes
1 answer

Locust failures - how to increase the timeout

I have created a web service using Flask over uWSGI. Locust testing is generating a lot of failures which are possibly related to the fact that the responses are quite large. How do I set a timeout for each response before it ends up failing. My…
smackenzie
  • 2,880
  • 7
  • 46
  • 99
0
votes
2 answers

Why does locust not send requests after a while? How can I solve it?

I was trying to test the performance. But I noticed that no new request was made after a while, only the temporary result reports are printed at intervals, the number of requests freezes until locust stopped when reaching the time limit. Part of…
Yiling
  • 1
0
votes
3 answers

How to create functionas dynamically containing a decorator?

I need to create/declare 50 functions inside my Class. But, I need to do it dynamically with custom function names and cutom urls in the function body. Something as the following: for item_nr in range(1, 51): @task(1) def…
D_Asti
  • 59
  • 7