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
-1
votes
1 answer

Can Locust test a system that uses the CORBA IIOP protocol

The phrase “almost any system or protocol” in the Locust Features/• Can test any system, leaves me with uncertainty and doesn’t define what that really means. As a developer my first question when reading this is to wonder if it can test a system…
-1
votes
2 answers

Unable to upload file in locust

@task def constraintsuploaddoc(self, false=None): headersc = {'content-type': 'multipart/form-data; ' 'boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW', 'Accept-Encoding':…
-1
votes
1 answer

Is it possible to get exception report csv file in locust.io when its running without web

Now i am able to get stats , failures , stats history csv files in without web. by using this command : locust -f locustfile.py --headless -u 10 -r 1 --csv=../../csv/$USER --run-time 1m Is it possible to get exceptions csv file in without web…
Nagarjuna
  • 39
  • 6
-1
votes
2 answers

TypeError: __init__() takes 1 positional argument but 2 were given Python

from locust import HttpLocust, TaskSet, task, between, events, Locust, User, HttpUser import vertica_python import time, logging def get_sample_query(): query = ''' SELECT COUNT(*) FROM tst.test_table''' conn = { 'host':…
J. Doe
  • 63
  • 2
  • 11
-1
votes
2 answers

Locust.io how could i use different users on locust.io without the system bugging when i start/stop for a new run

I have this code that works fine for the first run on a locust.io deployed server, but when i start/stop to make a new run i get multiple errors, in regard with the list. Could you guyz help me to be able to cycle it? from locust import HttpUser,…
-1
votes
1 answer

No date-time format found matching timeStamp jmeter report aggregator

I used to create aggregate report from Jmeter jtl file with the following command: java -Djava.awt.headless=false -jar cmdrunner-2.2.jar --tool Reporter --generate-csv locust.csv --input-jtl 'kpi.jtl' --plugin-type AggregateReport And it works fine…
SergeyMoroz
  • 117
  • 3
  • 11
-1
votes
3 answers

Is it possible to prevent execution of further tasks in locust TaskSequence if some task has failed?

For example i have the following class. How i can prevent execution of get_entity task if create_entity task was not executed? class MyTaskSequence(TaskSequence): @seq_task(1) def create_entity(self): self.round += 1 with…
avasin
  • 9,186
  • 18
  • 80
  • 127
-1
votes
1 answer

Installing locustio 0.14 using ansible playbook

I am new to ansible and writing a playbook to install locustio with python3 on a Ubuntu 18.04. I don't know how to install locustio with pip3 in playbook. If use pip package, then it gives error to use older version of locust. ( use a pinned old…
-1
votes
1 answer

Is it possible to write a log to a single file from several locust slaves?

I use locust on several machines (https://locust.io/). Each --slave and --master node with the --logfile option writes a log to its directory. Is it possible to make them write a common log to a single file? Since it is very inconvenient to collect…
-1
votes
1 answer

What does following code means in python (snippet of locust code)?

I want to understand what self means in the lambda function. In the Locust tool I found this code : import random class WebsiteUser(HttpLocust): task_set = UserBehaviour wait_function = lambda self: random.expovariate(1)*1000 Can anyone…
-1
votes
1 answer

LocustIO always returns Internal Server Error for All Post API calls

I'm using Locust to run a load test, to my surprise all of the POST APIs I tried calling from it returns "Internal Server Error - 500", but if I run the same APIs from JMeter they run well. I checked and saw like LocustIO prepends and apostrophe at…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
-1
votes
1 answer

locust.exe does not open on Windows 10

I have installed python 2.7.14 on my system (win 10, 64bit). I have also installed locust and set all env variables but when I click on Locust.exe the application opens, but immediately closes again.
-1
votes
1 answer

all Locust tests results suddenly turned to all 0

everyone i am new to locust and i found such thing which really confused me i use different usernames and passwords to log in the site,and i call my "log in" function under on_start funtion, but when i started my locust script, i found at first i…
-1
votes
1 answer

how to find locust logs and result

I had performance test by using Amazon over SSH with master and slaves. Actidentally closed the shell which stopped locust and I couldnt reach the :8089 port to get the result, and screenshots. Is there a way that I can get the log, .csv, or…
Mesut GUNES
  • 7,089
  • 2
  • 32
  • 49
-2
votes
2 answers

ModuleNotFoundError : No module named with locust

When I try to import external library of my project in my locust python file, each time I have the error "ModuleNotFoundError : No module name '...'. Apparently is not clear but locust is installed and works. I have a task to make REST API call and…
X.Bovi
  • 3
  • 3
1 2 3
57
58