S
S
SvinkaBacilka2019-09-06 13:52:33
Python
SvinkaBacilka, 2019-09-06 13:52:33

How to organize load testing for a web application using its interface?

It is necessary to organize testing of a web application using its interface. I wrote a small script using python, locust and selenium. As a browser, I use chrome in headless fashion, but I still lack speed, not to mention the fact that the test server is capable of producing no more than 60-70 such chromes.
Tell me how to implement load testing more correctly using the web interface of the application?
Or how to configure chrome for such needs?
My settings are below:

options = webdriver.ChromeOptions()
options.add_argument("--proxy-server='direct://'")
options.add_argument("--proxy-bypass-list=*")
options.add_argument("--no-sandbox")
options.add_argument('--lang=en-us')
options.add_argument('--use-fake-ui-for-media-stream')
options.add_argument('--disable-extensions')
options.add_argument('--no-cache')
options.add_argument('--headless')
options.add_argument('--disable-gpu')
options.add_argument('--browser-test')
options.add_argument('log-level=2')
options.add_argument('--dom-automation')
options.add_argument('--disable-gl-drawing-for-tests')

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Karasik, 2019-09-06
@SvinkaBacilka

There are two options:
- use multiple machines for load simulation (Locust + Selenium Grid, etc.)
- use a service - Loadimpact, Blazemeter, Loader.io, ....

B
bhjkaser, 2019-09-12
@bhjkaser

You can use the tools designed for this, if you need to implement a user load with complex scenarios, then JMeter / Gatling.
If you need to capture client-side metrics like page rendering time, you can run your Selenium scripts in a single thread, or use sitespeed.io to get beautiful page loading waterfalls.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question