Session

Parallel frontend test execution using Selenium and Docker

Nowadays, the main problem regarding frontend test execution is the time spent to cover the necessary scenarios to get the proper quality feedback. It's no wonder that we are focusing more on the earlier test stages like unit and integration. But frontend tests are also important, so how to make them faster?

I could reduce 2 days of manual tests to 35min of sequential tests to 6min parallel tests for the same test suite! So you also can!

We can achieve it by mixing a parallel test execution strategy together with a container approach, auto-scaling its usage of it per request. Do you think it's complicated? Believe me, it's not!

The trick is done by combining three different things:

1. a good code design, preparing it for a test parallelization using the Factory Pattern to create different driver instances based on the test requests

2. the usage of the built-in parallel strategy from your preferred test library

3. the usage of the Selenium 4 Grid containers, creating an orchestration to be able to auto-scale the different containers with web browsers

We will combine it all together, learning how to create the necessary code with the infrastructure to speed up the front-end test execution.

Elias Nogueira

Senior Principal Software Engineer at Backbase

Utrecht, The Netherlands

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top