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
0 answers

LocustIO test result for post calls

How does post call work with LOcustIO? I was suspecting Locust not doing what it is suppose to do because it was returning success for all load testing I was running so I decided to post, write to the DB via a web application using LocustIO, to my…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
0
votes
1 answer

Load/Stress testing an angular app

I have an angular application having some issues when more than a certain amount of users logs at the same time. I wish to load/stress test it with a realy simple scenario: user sees home page, logs in, then wait 30s, then logs out. I would like to…
Gigi22
  • 11
  • 1
  • 1
0
votes
0 answers

AttributeError: 'list' object has no attribute 'items' and json expected

I noticed something, as I am trying to setup a sample Restful API test project using this site - https://jsonplaceholder.typicode.com/. According to the docs on the site, when trying to make a post call I just need to pass the id, all I need to do…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
0
votes
1 answer

URL requests containing "/#/" are all seen as "/" then failing when running on Locust.io

The requests containing "/#/" are all seen as "/". Then I'll get a ton of "fails". from locust import HttpLocust, TaskSet, task class UserBehavior(TaskSet): @task(2) def login_page(self): self.client.get("/") @task(1) def…
Paul Laguna
  • 65
  • 13
0
votes
0 answers

Issues posting data with locust file

def post_driver(l): def id_generator(size = 6, chars = string.ascii_uppercase + string.digits): return ''.join(random.choice(chars) for _ in range(size)) data = {"startLocation":{"address":{"fullAddress":"\n, …
Z.Baker
  • 1
  • 1
  • 3
0
votes
0 answers

Python Locust stopped without error message, how should I check?

I run locust using this command: locust -f locustfile.py --no-web -c10 -r10 &> locust.log & My understanding is all output (stdout, stderr) will goes to locust.log However, when the program stopped without me triggering to stop, last lines of…
rendybjunior
  • 572
  • 6
  • 19
0
votes
0 answers

Safe await on function in another process

TL;DR How to safely await on function execution (takes str and int as arguments and doesn't require any other context) in a separate process? Long story I have aiohtto.web web API that uses Boost.Python wrapper for C++ extension, run under gunicorn…
0
votes
1 answer

Windows Authentication with Locust.io?

I'm trying use Locust.io to load test a project. The project is written in ASP.Net and uses Windows authentication. Is there anyway I can emulate this in my locust script to log a user in?
Jacob Mason
  • 1,355
  • 5
  • 14
  • 28
0
votes
0 answers

locust.io - how to run specific amount of request every specific time

I'm trying the locust.io (written in Python). I'm trying to test spikes. So I've tried setting min_wait and max_wait, so it would run only within that range (every 5 minutes): min_wait = 300000 max_wait = 350000 The problem is that it runs only 1…
user2880391
  • 2,683
  • 7
  • 38
  • 77
0
votes
2 answers

How to simulate ramp-up with Locust?

As I know Ramp-up function has been removed from locust. Just wondering if the hatching process was the same as or similar to ramp-up? Or is there anyway to simulate the situation?
0
votes
1 answer

How to send http request in protobuf format by locust

I'm new to locust, and I know it has a good support for http request in json format. We want to perform stress test on a http api with pb format, but, how to send http request in protobuf format by locust (instead, jmeter supports pb format). Is…
Ning Lv
  • 35
  • 1
  • 5
0
votes
0 answers

Using locust,.io to check the webapi performance

I am new to webapi calls. I have a bunch of webapi calls happening. I would like to check the performance of these calls using the locustio and swarm the users with the calls and record the time for each webapi call taken.. Below is the locustfile…
0
votes
1 answer

Inconsistent results from locust

I am running a locust test against my integration environment, which is hosted on a Lambda function behind API Gateway. When I run the test, the results seem to vary from about 1-3 requests per second, to 20-30 requests per second. The variation…
danielle
  • 813
  • 2
  • 10
  • 26
0
votes
1 answer

Pulling additional data from a Locust response

I am running a load test using Locust and have it working fine except I want to get the the sub-status code return in the response. I know the status code is available with response.status_code but I need additional information such as…
Glenn D
  • 11
  • 1
  • 3
0
votes
2 answers

Stress testing software (but I need run it step by step) with locust

as question in the Title what I meant step by step is like : -signup -get course -choose course all those three must be in order , step by step FYI I already make it on on_start but the status result is never correct for example : I set number…