Run tests with Karate-Chrome (Connection refused exception) Run tests with Karate-Chrome (Connection refused exception) docker docker

Run tests with Karate-Chrome (Connection refused exception)


I was not able to run UI-based tests directly on karate-chrome. Therefore, I ended up creating a new docker image (docker-openjdk8) to run the tests with driverTarget:

* configure driverTarget = { docker: 'ptrthomas/karate-chrome', showDriverLog: true}

This basically runs the tests with Docker-in-Docker (DIND) process. Would be happy to know if anybody else has got a better solution.


Sorry, your setup is not clear. But to use configure driverTarget = { docker: 'ptrthomas/karate-chrome' } means Docker should be installed on the machine where you are running the test.

I suggest you start looking at the 1.0 release, and we have a reference test that uses the Docker container a little differently, without using driverTarget. You can find details here: https://stackoverflow.com/a/66005331/143475

It would be great if after you get this working, you post your solution as another answer here so that it helps others and helps us improve the documentation if needed.