Issue:
When using an URL set by System.getenv inside a docker container. The url is not resolved by KATALON. But when doing: ping container_name inside the container, it works.
How to reproduce:
Create a server app listening on port 80 inside docker.
Create a katalon project inside docker
create a docker network
Run server app container (listening on port 80)
connect server app container to docker network
connect katalon container to docker network
Run katalon container
How to check if url is working inside katalon container:
ping server_app (it resolves)
root@aff9afbc64e7:/# ping server_app
PING server_app (172.21.0.2) 56(84) bytes of data.
64 bytes from server_app.custom_network (172.21.0.2): icmp_seq=1 ttl=64 time=0.070 ms
64 bytes from server_app.custom_network (172.21.0.2): icmp_seq=2 ttl=64 time=0.040 ms
But when using http://server_app as URL inside katalon container to run tests, it doesnât work at all: 2020-09-17 07:29:00.792 ERROR c.k.k.core.keyword.internal.KeywordMain - â Unable to click on object 'âŚ
Notes: The tests works on host URL. Ex. Lets say I exposed the server_app container on: localhost:3000, Then i run the katalon project outside docker (directly on host) it works.
We can understand this problem but itâs hard for us to setup a test environment without a sample Docker file. Can you share a sample project for better evaluation?
Hi @anon46315158@duyluong i have got a sample project created today.
Kindly do share an email address so that i can share the project with you so that you can check it. [ if its okay with you guys]
@anuradha@nvdoanh
Hi again.
Unfortunately i donât have a runtime license so i cannot fully test your workflow. Therefore sending any data to me is useless.
However, at a certain point in time i asked if somebody used curl from the katalon container to check the comunication with the webserver container, instead of just pinging.
This is not answered.
So i will just ignore any other âdetailsâ offered until this info is provided, just because my advices are ignored.
Will let this issue into the katalon staff team hands.