Giter VIP home page Giter VIP logo

testcontainers's Introduction

Selenide + TestContainers (Docker)

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!

Build Status

How to run tests

./gradlew test --rerun-tasks

testcontainers's People

Contributors

asolntsev avatar borisosipov avatar dengayevskiy-sb avatar dependabot[bot] avatar dstekanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

testcontainers's Issues

Selenide 5.3.+ doesn't run in container (creates driver locally)

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!

The testcontainer example does not work

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.