Performance – Use Selenium UI test speed (using XVFB) on Jenkins on Firefox

I am using the Firefox driver to run Selenium UI tests on Jenkins, and their execution speed is very slow compared to local execution. Specifically, it is almost the time required for local execution 4 times that. This is too inefficient.

Locally I run it on Windows or Mac, not Linux. However, Jenkins work runs on Linux.

Environment details are as follows:

> Jenkins (running Linux on a virtual machine)
> Xvfb is used to simulate a browser (no display connected to the VM)
> Firefox 38
> Java 8

I’m not sure if Jenkins configuration or anything else will make it faster. Is it the VM that caused it? Everything works well, but this is the slowness that leads to inefficiency.

Any ideas for improving performance will be highly appreciated.

The problem is basically based on the disk IO of the Jenkins slave running the test. The local computer (Mac or Windows) is very fast and usually uses SSD as the disk type. Use the Jenkins slave Updating to something with better hardware resources and faster disk IO solved this problem.

I am using the Firefox driver to run Selenium UI tests on Jenkins, compared to local execution, Their execution speed is very slow. Specifically, it is almost 4 times the time required to run locally. This is too inefficient.

Locally I run it on Windows or Mac, and Not Linux. However, Jenkins’ work runs on Linux.

The environment details are as follows:

> Jenkins (running Linux on a virtual machine)
> Xvfb is used for simulated browsing (No display connected to the VM)
> Firefox 38
> Java 8

I’m not sure if the Jenkins configuration or anything else will make it faster. Is it the VM that caused it ? Everything works well, but this is the slowness that leads to inefficiency.

Any ideas for improving performance will be highly appreciated.

< p>The problem is basically based on the disk IO of the Jenkins slave running the test. The local computer (Mac or Windows) is very fast and usually uses SSD as the disk type. Update the Jenkins slave to have better hardware resources and faster disk IO Something solves this problem.

Leave a Comment

Your email address will not be published.