Docker for QA: dockerized Selenium Grid
August 15, 2017
Docker for QA: dockerized Selenium Grid
Score 10 out of 10
Vetted Review
Verified User
Overall Satisfaction with Docker
Docker is used for by both the dev team and the QA team on my project. For the dev team it's really useful as they had a lot of issues prior to using Docker with the different setups the devs had: Win/Linux/Mac. After switching to Docker these issues disappeared.
For me as an automation QA lead, it's mainly used for our Selenium Grid. Our grid is running on AWS, and I configured it via Docker. I use docker-compose to start it up and to scale how many browsers should be started. Using only Docker was already a huge help, as we didn't really have to worry about the configurations and it was easy to use the same setup for more instances, but combined with the scaling option of docker-compose it proved to be a really convenient.
For me as an automation QA lead, it's mainly used for our Selenium Grid. Our grid is running on AWS, and I configured it via Docker. I use docker-compose to start it up and to scale how many browsers should be started. Using only Docker was already a huge help, as we didn't really have to worry about the configurations and it was easy to use the same setup for more instances, but combined with the scaling option of docker-compose it proved to be a really convenient.
Pros
- Develop on multiple platforms. The same Docker image can be used on Linux/Mac/Windows.
- Ease of configuration. It's very easy to create a base image for your project. There are a lot of already existing images you can use to start with.
- Scalability. If you need more than just one instance of the same image, it's just a command to spin up more.
Cons
- Finding the perfect configuration: it's very easy to find some basic configurations, but fine-tuning it can be challenging.
- Understanding the concept can be difficult at first. Most of the question I get from colleagues are around: what's happening inside the docker, how we can see the logs what happens inside etc. One you have the concepts, you can easily do these, but this can be a rough beginning.
- Sometimes difficult to set it up. I'm mainly hearing about this from colleagues using Windows.
- The biggest gain for the QA team is the ease with which we can spin up the Selenium Grid. Updating to the latest version means now modifying one line in a yml file, then rerunning a command. That's it, you're up-to-date now.
- There's of course an initial cost when you have to build the configuration. This proved to be a bigger challenge for colleagues on windows, but eventually it was well worth the invested time.
I had to use virtual machines before, the last one was VirtualBox. I was only a user there, I wasn't responsible for the configuration, it was a black box for me. When I had to use Docker for the first time I was a skeptic, but it proved to be easy. I can't really compare the configuration part, but as a user I find it more straightforward.
Comments
Please log in to join the conversation