0

Should we use performance testing on UI? Should we use End to End testing scenarios for performance testing?

1 Answer 1

1

There are 2 different side of things:

  1. Server-side performance testing when you simulate hundreds/thousands of virtual users accessing your application. This way you're testing your server and assessing how it handles increasing load
  2. Client-side performance testing which targets what's going on in the web browser, i.e. rendering speed, JavaScript execution performance, etc.

The point 1 can be conducted using any load testing tool which is capable of acting on HTTP protocol level.

The point 2 can be tested using i.e. browser developer tools which normally come with profiler.

Using end-to-end tests for assessing performance is theoretically possible, but it isn't something I would recommend because:

  1. Real-browser tests are very resource intensive as one browser instance requires at least 1 CPU core and a couple of gigabytes of RAM while you can mimic several hundreds of users on HTTP protocol level on the same hardware
  2. You will not be able to collect performance metrics and build charts correlating increasing load with response time, transactions per second, won't be able to measure connect time and latency, etc.

The best approach would be conducting the main load on HTTP protocol level using a suitable load testing tool and at the same time have 1-2 virtual users operating real browsers to check client-side rendering performance using i.e. browser Performance API. If you don't have other tools in mind consider using Selenium

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.