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 does response with 2xx but fails to gather request statistics

I am trying to do a local load testing with Locust. I got the test environment up and running and a local build is also working. I am trying to test the responses of a local path and the response I get in the terminal is correct. But the Locust UI…
Kalex
  • 21
  • 1
0
votes
1 answer

Locust Error nodename nor servname provided, or not known

First time caller long time listener :) I'm running a locust test on a site (or at least trying) but getting 100% failure with the following error 1 from locust import HttpLocust, TaskSet, task, between from locust.events import…
Shady Ayad
  • 11
  • 2
0
votes
2 answers

locust is not installing on my windows 10 for load testing

I tried installing this pip but getting some error, I want this package module for load testing This is the output i am getting: Collecting locustio Collecting geventhttpclient-wheels==1.3.1.dev2 (from locustio) Using cached…
Saurabh G
  • 19
  • 2
  • 8
0
votes
1 answer

How to pass argument/parameter into a child TaskSet & How to start another TaskSet within one task function?

We want to simulate users reading forums. Thus we want - class ReadPostsInOneForum(TaskSet): @task def read(self): forum_id = (want to get it from parent) # TODO HERE!!! post_id = _get_random_int() …
ch271828n
  • 15,854
  • 5
  • 53
  • 88
0
votes
1 answer

Support of handling callback request in locust (Server Initiated messages)

I am using locust for performance testing of my application. Have to test following scenario. Want to know if its supported in locust. Locust client sends post request to Application by setting callback url and timer. On expiry of timer,…
0
votes
1 answer

i am getting HTTPError('502 Server Error: Bad Gateway for 'https://myurl") using locust with python

while executing locust load test i have faced the mentioned issue and I have checked in my application insights there is no errors. so please help me how to resolve find the exact cause of this issue @task(1) def test(self): …
Appu
  • 25
  • 7
0
votes
1 answer

Locust master-slave on k8s, delete all pods when test complete

I'm running Locust in master-slave mode on k8s, I need to auto delete all locust pods when a test is completed. Any suggestion? Thank you.
kai
  • 3
  • 1
0
votes
1 answer

Locust TaskSequence Problem with more than 1 seq_task

I'm not able to have 2 or more @seq_task's to run in order, after getting and using the access token with the POST login. on_start get the access token GET using the token to an API endpoint POST using the same token to the same API endpoint stop…
hombre
  • 11
  • 2
0
votes
0 answers

Monkey patched PyMongo results in slow performance as compared to YCSB results

I am developing a flask application. It's a simple application with a single endpoint, index (/) for now. In my projects __init__.py file, before importing anything, I monkey patch all the libraries with monkey.patch_all(). Here's what my…
Ahmed Dhanani
  • 841
  • 1
  • 11
  • 32
0
votes
1 answer

How to send locust metrics to prometheus using locust exporter?

I came accross locust exporter. So I installed it and followed the steps and as said in document I ran the commmand locust_exporter.py 1234 localhost:8089 where 1234 is a port. But it throwing some error. Exception happened during processing of…
Tester
  • 53
  • 2
  • 7
0
votes
1 answer

How to install locust swarm and work on it in windows?

I have came across 3rd party tool locust-swarm. Therefore I went ahead and installed it using command pip install locust-swarm. In the document it is given to run the command swarm -h but when I run it, the command prompt says that command is not…
Tester
  • 53
  • 2
  • 7
0
votes
1 answer

spawn in random users in locusto?

Does anyone know how to spaw in more users in random time using locusto performance tool? Not all users spawn in one go. any option for this in locusto? If not, I am going to switch it to a different tool which support this.
0
votes
1 answer

How to format Form Data that contains quotes, commas and curly brackets

I have a data form where the value contains quotes, commas and curly brackets. ("" , {}). How would this be properly formatted for Locust use: devicePrint: {"VERSION":"2.1","MFP":{"Browser":{"UserAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5…
0
votes
0 answers

I can't run the locust in bash console in pythonanywhere for django webapp

I have installed locustio but can't configured it. It is giving errors. I don't know the ports where i can log in. its giving me this error: [2020-03-15 08:29:22,509] blue-liveconsole4/ERROR/stderr: [2020-03-15 08:29:22,509]…
0
votes
0 answers

How do I recreate this user behavior through Locust?

The users on my site follow these actions: Send requests of Type A arbitrarily (meaning, I am satisfied with using something like between(1.0,5.0) Send requests of Type B exactly every second (but must follow Type A) Send requests of Type C exactly…
a3y3
  • 1,025
  • 2
  • 10
  • 34