RUN Selenium Test Cases in Docker – Advantages and challenges

What is Docker? 

Docker is a container platform that provides virtualization from the operating system level. In Docker, all software parts can be organized in containers. This includes the operating system, software, dependencies, environment variables, etc. Containers can be shared among different users, enabling quick installation and running of software and services. This makes Docker handy for automation testing, as the relevant container can just be downloaded and run as part of the automated test. However, Docker is also secure because it runs as an isolated process on the host machine.
Docker can be run on any computer on any infrastructure as well as in the cloud, including Linux, Windows, Mac, Amazon, Azure and etc. 

Pro's of using Docker

  1. Docker is open source. This means that you can find many images (used to generate containers) on the web and use them. 
  2.  Docker can be an integral part of Continuous Deployment and Continuous Testing, by ensuring you have a consistent environment when developing and going into production. 
  3. This is because configurations and dependencies are maintained internally, and will not change. Docker is isolated, secure and portable. 

Con's of using Docker 

Following challenges may be faced during implementation.
  1. There is no official Docker support.
  2.  It requires expertise as there is no GUI and it does not run in bare metal speed. 
  3. For automation, it supports Chrome and Firefox 
  4. Configuration and debugging of automation scripts is difficult
  5. Execution will be headless , hence automation execution track and tacking stale issue will be very difficult

Comments

Popular posts from this blog

How to inspect disappearing element in a browser:

Implicit vs Explicit vs Fluent And Sleep in Selenium

Selenium Page Object Generator Chrome Extension