TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Docker

Fix Connection refused Error Selenium Tests On Docker

Overview

Let’s see how to fix Connection refused error while testing Selenium Tests On Docker. Docker is a container platform for seamless application delivery. We can leverage Docker to Selenium tests as well.

Connection refused Error

Caused by: java.net.ConnectException: Connection refused: no further information: localhost/[0:0:0:0:0:0:0:1]:49153

at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:80)
at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)
at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)

 

Connection Refused Error

Possible Fixes

Container

First things first, check if the Docker container is up and running. Check with the docker ps command to check the status. If the container is not running, start the container.

Port

Check the container logs and the docker ps command to check on which port is used for the Selenium RemoreWebDriver Hub URL.

\> docker ps

 

docker ps command

Network/Firewall Issues

Check if the port is open and not blocked by the Firewall application. Blocked ports can stop the Selenium test communication to the remote Selenium Grid server.

A sample Windows Firewall security alert that has blocked Selenium Server features is shown below.

Windows Firewall Selenium Server

 

To fix this we need to look at the Firewall inbound/ outbound firewall rules.

Related

https://www.testingdocs.com/run-selenium-test-on-docker-container/

More Information on Docker:

https://www.docker.com/

Related Posts

Container Technology

Docker /

Advantages of Containerization Technology

Docker Compose YAML File

Docker /

Docker Compose Tool

Docker Install Check

Docker /

Docker Install on Ubuntu

Download and Install Docker Desktop

Docker /

Download and Install Docker Desktop

Docker /

Popular Containerization Software

‹ Docker Compose Tool› Advantages of Containerization Technology

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version