ppodgorsek / docker-robot-framework

Robot Framework in Docker
https://cloud.docker.com/repository/docker/ppodgorsek/robot-framework
MIT License
333 stars 235 forks source link

how to access a website which is run in docker container at same machine #405

Closed lovelyplanet2019 closed 2 years ago

lovelyplanet2019 commented 2 years ago

The test cannot be executed when the website is hosted in a docker container at this address: https://test.sts:2000/ I guess I need to set the same network host in rf docker? i am not sure. any workaround?

==============================================================================
001-test                                             [ WARN ] Keyword 'Take Screenshot  fail-screenshot-{index}' could not be run on failure:
Error: Tried to take screenshot, but no page was open.
| FAIL |
Error: page.goto: net::ERR_NAME_NOT_RESOLVED at https://test.sts:2000/
lovelyplanet2019 commented 2 years ago

issue resolved at docker-compose.yml , adding extra external host