Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
Renato Marinho
This message was deleted
Andreas Nanko
Hi, is it possible to display requests with different url as groups ? I've created some lists for random requests like articles, categories, but I would like to see the average for the groups and not for every URL, because if you do random requests over 9k different article URL's everything gets a bit messy
Andreas Nanko
    self.client.get(url, name='Articles')
found it ^
Samkit Shah
Hi, I was wonderig if there’s any specific reason that we can’t get response status in the event-hooks https://docs.locust.io/en/stable/api.html#available-hooks
also, as I understand, we can either use the name or the uri but not both
Hi, I am trying to perform a load test for HTTPS endpoint and passing host in command line. But I am getting error like "File "/usr/local/lib/python3.7/site-packages/locust/core.py", line 96, in getattr
raise LocustError("No client instantiated. Did you intend to inherit from HttpLocust?")
locust.exception.LocustError: No client instantiated. Did you intend to inherit from HttpLocust?"
Can you help me with this.
maulana jayadi
hI guys
I want to ask with All of you,, how do you stop when the first task is running and stop automatically without clicking the stop button in the locust?
and how do you provide random values such as store_nama, email, phone and store_code in Body (Payload)? how do you add the parameters? what needs to be defined?
Reid Lai
Hi there, i have already used IoT simulation tool to generate huge set of payloads storing in PyTables inside HDF5 file. Each payload has a relative timestamp since simulation start time. I am now thinking to use Locust to load this table and run locust as scheduler based on the payload timestamp...is it possible? coz I am stucking at how to make user sessions to send out IoT MQTT payloads as job scheduler
Hi How to add ramp up time using locust ?
hi,guys. When I running locust distributed,the rps is lower than running one,Is there sometiong wrong?
hi, is there any way to integrate locust with pytest? we use pytest as functional testing, if it could be used as load testing suite will be best
Rishi Sharma
I am getting bad request while running POST Request in Locust
Rishi Sharma
Does anyone reply on this group
Andreas Nanko
@rishisharma108 dont think so. and additionally your question is not well described.
so whats the matter with your post request. i did a lot in the past without problems :-)
Rishi Sharma
Hi Andreas I am new to locust and I wasn't able to learn locust properly as the documentation is very less , so my request was failing. Now somehow I managed to pass the request successfully. If you can share a link or blog which can be used for learning it would be a great help.
Second thing there is no such recording feature available in Locust which is available in JMeter nad Gatlingio which makes difficult to create scripts in Locust.
Andreas Nanko
What kind of recording ? You can intercept every result and put it in whatever you like
def kpi_zabbix_handler(request_type, name, response_time, response_length, **kw):
    print("Successfully fetched: %s in %s" % (name, response_time))
    payload = []
    payload.append("- kpiMeasurement.discovery { \"data\": [{ \"{#KPINAME}\": \"%s\" }] }" % (name.replace(" ", "_")))
    payload.append("- kpiMeasurement[%s] %s" % (name.replace(" ", "_"), int(response_time)))

    with subprocess.Popen(["/usr/bin/zabbix_sender", "-c", "/etc/zabbix/zabbix_agentd.conf", "-i", "-"], stdin=subprocess.PIPE) as proc:
      proc.stdin.write(bytes("\n".join(payload), encoding='utf-8'))

events.request_success += kpi_zabbix_handler
thats one example i am using to send some locust data to a special zabbix backend
you could also write it into a database, or whatever you like.
or do you mean recording by using a browser to learn which requests to make ?
Andreas Nanko
never seen that. locust is testing as code.
I've only seen your messages because I was checking another gitter channel i am on
Did you see that locust is on slack. Probably they moved there.
Andreas Nanko
There are 1229 members ;-)
Anant Kakrania
@heyman Hi!
I have recently started working on Locust and have a use case where I want to test the performance of a simple function. Example:
def get_sqr(n):
return n*n
There is no client requirement or any server. A simple function or set of functions to be tested. Is this possible and if yes, can you please let me know how?
@aidylewis @andreasnanko
hey, does anyone happen to have an example code for TCP connection load testing? I want to send some json-rpc to specific tpc server
Alexandre Verri
Hi guys, I think Locust is great for finding the maximum number of users supported by the system under test. It's very easy to look at the charts and see the deterioration of RPS or response time caused by the increase in the number of users. I have a doubt: How does Locust generate the load per user? Does it send a specific amount of requests per second, or what?
Alexander Zhovnuvaty
i'm beginner in locust, prepared a test script have few questions. please reply. thanks in advance: 1) sometimes statistics in web UI is not updated - it is most of all something with my script or this feature is unstable?; 2) is it possible to extend web UI and add extra input parameter (like number of iterations?); 3) what is the best way to initialize a single array with predefined data and share it between all Users so each user retrieves unique item from the array?
Alex Heal
Hi all, plz help, how i can get current session or user index in task()?
Paul Dragoonis
Hello lovely locust'ers - how are you all publishing the locust results from the CI run. I noticed locust has a CSV export feature, but I'm looking for a HTML based report, so I can see the graphs/data. What is everyone doing?? :)
Anahi Costa
Good afternoon, I am fairly new to locust.
I removed these files -under the assumption they would regenerate :( - success_req_stats.csv+ failure_req_stats.csv
Trying to run a distributed test and I am encountering this message on my --master instance:
/INFO/locust.runners: Discarded report from unrecognized worker [server]
has anyone seen this before?
how could I fix it?
hey, have any of you ever tried doing json-rpc tests via locust ? (ElectrumX to be precise)
Hi, I have one EC2 instance with 2 cpu 8 gb ram, how can I calculate the capa
capacity of the machine
I am using locust, and using 4 get and 1 post api having less than 4ms response time, if hit manually, how can I design my hatch rate and number of total users
Angelina H.
Hello, is there a way to have locust generate a constant load or at least not to exceed a specific load?
Hi, does the loadtestshape class work on distributed mode ?
Or, is there a method to adjust user's count in worker?