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

How to make locust load scripts run in sequence?

I'm trying to automate the following scenario with locust: Login to application (put it in on_start, so it will login all the sessions first) and get token value from response of login call. Create an organization Create a user. I need these…
hsp
  • 1
  • 1
0
votes
1 answer

Trying to run Locustio through an Nginx server

Setup: I have 3 servers Server 1 - Nginx and Locustio are on this box Server 2 - Holds a django project on port 8001 server 3 - Holds a django project on port 8001 My Nginx box has an ssl certificate and is accessible through…
Jahedh
  • 3
  • 1
  • 5
0
votes
1 answer

Using Fabric to start Locust on multiple slaves

I am rather new to Fabric but I started working with it in order to automate the execution of load tests. I use Locust for load testing my apps but since i test with over 100k CCU this requires multiple slaves. I've used boto3 to automate the EC2…
shaka
  • 1
0
votes
1 answer

Error in running python locust script from two different Linux Distribution

I write a locust script to test a web site. The script is very simple, just a request repeated several time. In a virtual machine with Linux Mint and Python 2.7.6, the script works in the right way and as I want. For example, I run the script…
MCortese
  • 3
  • 2
0
votes
0 answers

Error parameters HTTPS locust request

I´m trying to navigate in locust with an user logged in the webpage. I want to navigate sending the cookies to the server, the process is this: @task(1) request to get the cookies @task(2) login in the webpage with method post and getting the…
BigBugCreator
  • 1,009
  • 4
  • 17
  • 34
0
votes
1 answer

Locust: Web Interface from AWS instance

I just started using Locust, installed on a AWS instance and it is working fine. But I am unable to get to the web interface. Port 8089 is open in the AWS security group. http://ec2-XX-XX-XX-XX.eu-west-1.compute.amazonaws.com:8089 is not working…
Martijn van Deel
  • 123
  • 1
  • 1
  • 7
0
votes
1 answer

Combination Functional/Load/Stress Testing Website Libraries Python

I have the need to scale up some testing efforts for web application. I'm most familiar with using selenium (with python bindings) for functional testing amongst other things. Now that I need to also do concurrent load/stress testing I think I…
Pylander
  • 1,531
  • 1
  • 17
  • 36
0
votes
1 answer

Locust performs very poorly on EC2

I have a set of Locust tests that I'm using to test a REST API. These Locust tests perform extremely poorly when running on EC2 instances. I developed the tests within a Vagrant VM environment using one VM as the Locust master and one VM as the…
JusDockin
  • 9
  • 2
0
votes
0 answers

Install locust in Anaconda

I´m was trying to install locustio following this steps (http://docs.locust.io/en/latest/installation.html), in my terminal: pip install locustio I get this: ld: library not found for -lgcc_s.10.5 clang: error: linker command failed with exit…
BigBugCreator
  • 1,009
  • 4
  • 17
  • 34
0
votes
1 answer

Test performance of predictionio

I would like to test performance of prediction phase of one algorithm using Locust. The query of engine (REST API) looks similar to this: engine_client = predictionio.EngineClient(url="http://localhost:8003") print…
Le Kim Trang
  • 369
  • 2
  • 5
  • 17
0
votes
1 answer

script to connect servers and run some commands on amazon

I want to write a fish script to run Locust on the amazon servers. I wrote the code as below, the problem is that when the shell connects to first server it cant send the other commands there. Any helps, recommedationa are appreciated. set labs…
Mesut GUNES
  • 7,089
  • 2
  • 32
  • 49
0
votes
1 answer

Python Locust - herror: [Errno 1] Unknown host

I'm trying to test my application using python Locust, but I can't get a basic version to work. My locustfile.py file: from locust import HttpLocust, TaskSet, task class UserBehavior(TaskSet): @task(1) def test_get(self): …
Nick
  • 1,864
  • 5
  • 27
  • 49
0
votes
1 answer

ec2 instance running locust.io issues

I'm trying to run a locust.io load test on an ec2 instance - a t2.micro. I fire up 50 concurrent users, and initially everything works fine, with the CPU load reaching ~15%. After an hour or so though, the network out shows a drop of about 80% -…
WeaselFox
  • 7,220
  • 8
  • 44
  • 75
0
votes
0 answers

can locustio store data for reuse?

I want to store data for later use in the locust, for example response = self.client.post('/' "username:'xx', password:"xx") self.client.data1 = response.content['data1'] self.client.data1 can be used in the next request, but when simulate…
0
votes
2 answers

Does it exactly model the real world scenario?

I have been using Jmeter for long time for load testing. Recently, I came to know that Jmeter cannot mimic exactly the real world scenario which can be done by Locust and other performance tools? Can someone please share their knowledge in this…
hatellla
  • 4,796
  • 8
  • 49
  • 101