Thanks ,
That answered my query , I have one more follow-up question if we are running the command : zap.sh -daemon -port 8090 -host 0.0.0.0 . In this case we are setting up the zap to listen at port 8090 and we can easily get the IP of the container using the docker inspect <container-id> | grep IPAddress . So It is quite easy to connect to the container.
My Question is : Is there any way to specify the port number in case of Automation Framework , so that our container will listen on that specific port and we can then connect to it , As we did earlier .
Because I am able to access the container i.e Proxy through the container in case of former , But I am having Issues connecting to the same while using AF , since I am not able to specify the port so I am getting the following error message :
requests.exceptions.ProxyError: HTTPSConnectionPool(host='
restful-booker.herokuapp.com', port=443): Max retries exceeded with url: /ping (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5b6e1aa790>: Failed to establish a new connection: [Errno 111] Connection refused')))
pythonproject1_myapp_1 exited with code 1
pythonproject1_myzap_1 exited with code 0
Thanks
Bzp .sh -daemon -port 8090 -host 0.0.0.0