This is a sample project showing how to run tests in Docker with help of TestContainer library.
Look for SearchTestWithDocker
to see how to run Docker with just a single annotation!
./gradlew test --rerun-tasks
Selenide + TestContainers (Docker) sample project
License: MIT License
Hello @asolntsev ,
Can you please verify if your tests are really running inside testcontainer (ie properly with remote selenium in docker)?
I found in my case everything is working fine with selenide 5.2.x, but when I'm using newer selenide version, my browser start opening in local browser on my Mac, not inside testcontainer.
Thanks!
Tried to run with ./gradlew test --rerun-tasks the result is:
org.selenide.examples.DownloadTestWithDockerAndProxy > search FAILED
java.lang.ExceptionInInitializerError at NativeConstructorAccessorImpl.java:-2
Caused by: org.testcontainers.containers.ContainerLaunchException at DownloadTestWithDockerAndProxy.java:35
Caused by: org.testcontainers.containers.ContainerFetchException at DownloadTestWithDockerAndProxy.java:35
Caused by: java.lang.IllegalStateException at DownloadTestWithDockerAndProxy.java:35
org.selenide.examples.GoogleTestWithDocker > search FAILED
java.lang.IllegalStateException at DockerClientProviderStrategy.java:83
org.selenide.examples.GoogleTestWithDockerNoVideo > search FAILED
java.lang.IllegalStateException at DockerClientProviderStrategy.java:83
org.selenide.examples.GoogleTestWithFirefox > search FAILED
java.lang.IllegalStateException at DockerClientProviderStrategy.java:83
4 tests completed, 4 failed
Docker is installed. Using Windows 10.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.