I would like to ask about the “Smart wait” feature in Katalon. It seems the feature is not working as expected when running test cases in the Docker container.
The Smart wait has been enabled in the setting and also be added as a step in the test cases. However, the test cases are still failed due to timing issues.
I am using the Katalon Enterprise version 7.7.2 and the Docker compose version 3.0
Please give me some advice to overcome this issue
That is right. The test cases were passed when running on Chrome local, however, they were failed when running on Docker containers (remote). This reason for failing is because of the timing issue. The smart wait may not be working properly.
I mean the Katalon image, not the Docker version, apology for the confusion. Anyway, can you pull the latest docker image of Katalon and try again ? We just updated the 7.8.1 image which fix a problem of Smart Wait not being triggered during execution, it may be the cause to your test failures. Please try that and let me know.
I tried to pull the latest Katalon Docker image. Unfortunately, I got an exception showed below.
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
I have created a docker account and log in from Docker dashboard, then pull it, but it didn’t work.
Even I tried “docker login” by CLI, I also got the same exception.
Can you please indicate a direction to resolve this issue?
Hi Thanh,
Thank you for your quick response to my question. I am using Selenium Grid docker-compose version 3.0. Do you have a docker-compose for the Katalon? If not, could you please tell me how to use the 7.8.1 Katalon image with the docker-compose? Below is my docker-compose file
Hi Thanh,
Currently, I use docker-compose to start containers from the docker-compose file above.
Command to start containers from docker-compose file:
docker-compose up --scale chrome=3 -d
This docker-compose will start up a Selenium Grid with one hub and multiple nodes to run our test suite collection.
In Katalon, I changed the setting of Remote web serve url to http://localhost:4444/wd/hub (please see the screenshot)
so, in fact, your issue is “smart wait not working as expected when running tests remotely on selenium grid (dockerized)”. has nothing to do with katalon docker image.