Selenide tests inside Docker container

930 views
Skip to first unread message

macie...@gmail.com

unread,
Aug 1, 2018, 5:42:12 AM8/1/18
to selenide
Hi All,
Was anyone trying to run "Selenide" tests directly inside a docker container?
I mean, not using selenium server but executing eg. "gradle test" inside a container with headless chrome.
If yes, which image should I use for it?
Is there a special configuration necessary?

Andrei Solntsev

unread,
Aug 2, 2018, 5:04:01 PM8/2/18
to Mac H, selenide
No, I didn't try this way. 
People typically run only browser in docker. The easiest way to do it using TestContainer library. 
As long as I know, Docker images "selenium/standalone-chrome-debug:3.13.0" and "selenium/standalone-firefox-debug:3.13.0" can be used. 

Andrei Solntsev


ср, 1 авг. 2018 г. в 12:42, <macie...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "selenide" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenide+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rodrigo Rincon

unread,
Sep 11, 2018, 5:06:23 PM9/11/18
to selenide
I use Docker only to get the browser and run the tests there. I mean, jenkins is the CI tool, and every job for automation has configured to run a docker image from a Dockerfile, and then a script that makes a call to maven to execute the tests against the browser thar runs in a docker container-

Andrei Solntsev

unread,
Sep 11, 2018, 7:06:08 PM9/11/18
to rodrigo....@gmail.com, selenide
Ok, I got it.
We have a sample project that runs Selenide tests in Docker: https://github.com/selenide-examples/testcontainers
It uses "TestContainers" library that allows to easily start Docker from tests.

Andrei Solntsev


ср, 12 сент. 2018 г. в 0:06, Rodrigo Rincon <rodrigo....@gmail.com>:
--
Reply all
Reply to author
Forward
0 new messages