load-testing

Locust Multiple Hosts With Different Peak Concurrency (Web UI)

Locust Multiple Hosts With Different Peak Concurrency (Web UI) Question: I am trying out the Locust load testing Framework. I have a case where I want to test multiple hosts: from locust import HttpUser, task, between from tasks import TaskList class FirstUser(HttpUser): wait_time = between(5, 15) host = "https://example.com" tasks = TaskList class SecondUser(HttpUser): wait_time …

Total answers: 1

Locust – How to pass new configuration through code to locust

Locust – How to pass new configuration through code to locust Question: I am trying to run locust as a library from python code and along with that I wanted to use locust-plugins library. The main problem I am facing is that I am not able to find how to pass additional command line arguments …

Total answers: 1

Executing the auth token once per run – Locust

Executing the auth token once per run – Locust Question: Ideally I want to grab the token one time (1 request) and then pass that token into the other 2 requests as they execute. When I run this code through Locust though… from locust import HttpUser, constant, task import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) class ProcessRequests(HttpUser): host = …

Total answers: 1

Passing token to Locust request

Passing token to Locust request Question: I am trying to pass the Oauth token generated into a @task request This is resulting in a 401 error from locust import HttpUser, constant, task import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) class ProcessRequests(HttpUser): def on_start(self): tenant_id = "tenant123" client_id = "client123" secret = "secret123" scope = "api://123/.default" body ="grant_type=client_credentials&client_id=" + client_id …

Total answers: 1

Selenium testing without browser

Selenium testing without browser Question: I use Selenium RC for testing. Now to perform a load test, I want to run parallel test cases. Is there any way to run them without opening a browser? Asked By: Mohyt || Source Answers: You can run Selenium headless, take a look at this question/answer: Is it possible …

Total answers: 9