Blog

Test automation: scalable Selenoid as an alternative for Selenium Grid

Learn about Selenoid - a successful alternative to Selenium Grid. 
3 October 2018
Test automation
The article by a1qa
a1qa

Selenium Grid is a widely spread solution used by test automation engineers. It serves to obtain a distributed environment for parallel execution of multiple tests. However, QA engineers encounter bottlenecks, which can be solved using an open-source project named Selenoid.

This article will figure out how Selenoid can help you save time and streamline automated tests performance, as well as provide a high-quality solution at short notice.

What is peculiar about Selenium Grid?

Selenium Grid is a cluster consisting of several Selenium servers. It’s intended to create a distributed network for a simultaneous launch of tests in multiple browsers. It incorporates a central server (hub) and nodes connected to it.

Although the solution is of high demand, the following peculiarities should be taken into account:

  • Time-consuming deployment process

Engineers have to fulfill the following steps in order to deploy Selenium Grid:

Steps to deploy Selenium Grid
  • Complex launch commands

The commands to initiate server and node launch look as follows:

Command to initiate server and node launch
  • Performance speed reduction

The hub decelerates if multiple browsers are run in different nodes.

  • Compatibility issue

Browser and node versions should be compatible to avoid conflicts.

Is there a solution?

Some issues, such as long deployment process, can be optimized by means of Docker. This software platform is developed for a quick application build, debugging and deployment.

Engineers elaborate the image and after that proceed with the implementation of a container. It covers all aspects necessary for the application performance: libraries, system tools, code, and execution environment.

Even official Selenium images with multiple browser versions will hardly optimize browser launch since all Selenium Grid peculiarities remain constant.

Selenoid as an alternative

Quickly and easily customizable Selenoid can become a robust option. This tool helps to run browsers in Docker containers. The process is different, although.

Selenoid launches a new container for each new browser request and stops it after the session is closed.

A certain browser version, the required version of the web driver or Selenium-server, which supports this browser and all necessary dependencies (for instance, graphics libraries) form each container.

All browser processes are fully isolated. This allows launching an unhindered number of multiple browser versions concurrently.

Selenoid is written in programming language Golang and supports all popular browsers.

Do you want to make the life of your team easier? Consider test automation. It will come as a relief to both Dev and QA teams. 

Selenoid vs. Selenium Grid

Both solutions pursue one objective, which is the elaboration of a single environment for a parallel launch of automated tests. However, these solutions differ a lot.

Selenoid vs. Selenium Grid

Selenoid advanced features

Selenoid comprises a number of additional functions that contribute to workflow optimization.

  • Data storage in RAM

Selenoid stores all temporary files in tmpfs.

Tmpfs is a temporary file repository that allows storing files in RAM, access to which is performed much faster than to the file system of the hard drive.

  • Various screen resolution types

QA engineers can configure the appropriate screen resolution for a running container on their own by setting the required parameters in the Browser Capabilities.

  • Browser screen display

Selenoid enables engineers to connect to the VNC port during tests execution and access the screen of the desired browser. It’s even possible to interfere in the process of running the automated test using the mouse.

  • Video recording of tests

It’s possible to record the video of the tests performed.

For instance, the activation in the Google Chrome browser is implemented by setting the parameter true in the Browser Capabilities:

ChromeOptions options = new ChromeOptions ();

options.setCapability (“enableVideo”, true).

Summarizing

Due to multiple benefits, Selenoid is a robust solution for test automation engineers.

This scalable alternative helps to change configuration settings seamlessly according to the preferences and needs of your team, cut corners on resource consumption, and perform tests in due course.

Any questions left? Feel free to drop a line in the comments.

More Posts

debated technologies
30 May 2023,
by a1qa
3 min read
a1qa tech voice: Managing director at a1qa, North America, discusses pros and cons of much-debated technologies
Nadya Knysh, Managing director at a1qa, North America, puts a spotlight on 6 current technologies, discussing their positives and negatives.
General
Interviews
Test automation
why-do-bugs-get-missed
17 April 2023,
by a1qa
4 min read
Why do bugs get missed? Learn the problems and tips to avoid them
Still, finding overlooked bugs after the app goes live? Let’s find out why this happens and how to fix it.
Quality assurance
Test automation
Mobile app testing
15 February 2023,
by a1qa
4 min read
Mobile app testing guide: win the race with five-star software
Which aspects of mobile apps to test first to produce a really high-quality product? Find the answer to this and other questions related to mobile app testing in the article.
Cybersecurity testing
Functional testing
Mobile app testing
Performance testing
Test automation
Usability testing
a1qa-articles
31 January 2023,
by a1qa
5 min read
Best of 2022 by executives: 8 most visited a1qa blog posts
Let’s look back and revisit the most visited a1qa articles of 2022!
Quality assurance
Test automation
qa-trends
12 January 2023,
by a1qa
4 min read
The future of software testing: top 4 impactful trends that will dominate in 2023
Consider the major industry trends for the upcoming year to know how to improve current QA strategies and stay ahead of the curve.
QA trends
Quality assurance
Test automation
test-automation
7 December 2022,
by Dileep Marway
3 min read
Release at pace with test automation: What, why, and how to measure success?
An automation-first approach is key to enhancing testing capabilities and increasing overall operational efficiency. However, I would suggest justifying its implementation, so that it can deliver the promised value.
Quality assurance
Test automation
interview-with-dileep
28 November 2022,
by a1qa
9 min read
Interview with Dileep Marway on a series of articles “Agility and speed: Supercharging your business strategies with QA”
We cooperated with the VP of Engineering and Quality at SHL to present you with a series of his blog posts on: culture of happiness, test automation, and Agile-driven QA. Happy reading!
Agile
Quality assurance
Software lifecycle QA
Test automation
qa-trends-in-telecom
30 September 2022,
by a1qa
5 min read
4 telecom trends for 2023 and how to painlessly implement them with QA
It’s time to explore the telecom trends for the upcoming year. Let’s look at them together and also see the value that QA brings for their smooth deployment.
Cybersecurity testing
Migration testing
QA trends
Quality assurance
Test automation
ai-ml-test-automation-mini
15 September 2022,
by a1qa
4 min read
4 key QA activities to solve test automation challenges via AI and ML
How to address the difficulties caused by implementing test automation? Learn how to do it via applying AI and ML.
Test automation

Get in touch

Please fill in the required field.
Email address seems invalid.
Please fill in the required field.
We use cookies on our website to improve its functionality and to enhance your user experience. We also use cookies for analytics. If you continue to browse this website, we will assume you agree that we can place cookies on your device. For more details, please read our Privacy and Cookies Policy.