Search code examples
jmeterrobotframeworkperformance-testingui-testinglocust

Load Testing the UI recommendations for a quasar project


Current State

We have an SPA application developed with quasar. We have been successfully able to load test the APIs via locust and also run automation tests via Robot Framework.

Objective

Since the APIs were only load tested via locust, we wanted to load test the behavior of our system, when there will be multiple users accessing our UI giving us answers to questions like

  1. How many users will be able to access the UI without slowing it down.
  2. Monitoring the response times as the number of user increase.

Clarifications Needed

As a starter in performance testing, I wanted recommendations on which tool would be the best to load test the UI.

  1. Is it possible to hook the automation tests of Robot Framework to locust?
  2. Can we just include the selenium library in python and execute those automation scripts in locust to load test the UI?
  3. Should we be using tools like JMeter or any other tools which can achieve our requirement.

Solution

    1. It is possible, see Extending Locust using event hooks
    2. Yes, there is even an example locustfile you can use as the reference
    3. JMeter per se doesn't have any frontend performance testing capabilities so you will need to follow the same approach by integrating JMeter with Selenium via WebDriver Sampler

    You may find Taurus tool useful, it is capable of executing Robot Framework tests and Locust tests so you can kick off them both at the same moment by supplying the configuration via simple YAML file and have the results at the same place