Load balance execution of UI tests (Selenium) on multiple identical app instances (URLs)

316 views Asked by At

I am trying to run UI tests on multiple identical instances of the web application. For example, let's say the identical version of the application is available at 3 places:

The intended system should check which instance is available and run a test (that is not already run) on it. It should be able to run 3 tests on the 3 instances simultaneously in the Jenkins environment.

I have explored the Jenkins Matrix Configuration, but that appears to run all tests on all possible combinations in the matrix. My intention is to divide and load balance the tests, not run on all combinations. Any ideas on how this can be done?

I am using JUnit4 with Ant for running the tests on Jenkins.

1

There are 1 answers

5
Pekka On

One solution would be a Matrix Project Plugin. You could configure your url as parameter a bit like in here: Building a matrix project