docker与Codeception错误
我正在尝试使用php docker和codeceptiontesting。
我发现这个例子。
https://github.com/imunew/docker-codeception-example
我没有编辑任何文件,然后在这里成功。
root @ {container id}:/ var / www / symfony.demo#bin / composer自更新
root @ {container id}:/ var / www / symfony.demo#bin / composer install
有消息composer php安装成功。
但在bin / codecept运行失败
错误信息在这里。
[Facebook\WebDriver\Exception\WebDriverException] JSON decoding of remote response failed. Error code: 4 The response: '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The requested URL could not be retrieved</TITLE> <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE> </HEAD><BODY> <H2>The requested URL could not be retrieved</H2> <HR noshade size="1px"> <P> While trying to retrieve the URL: <A HREF="http://selenium.demo:4444/wd/hub/session">http://selenium.demo:4444/wd/hub/session</A> <P> The following error was encountered: <BLOCKQUOTE> Unable to determine IP address from host name for <I>selenium.demo</I> </BLOCKQUOTE> <P> The dnsserver returned: <BLOCKQUOTE> Name Error: The domain name does not exist. </BLOCKQUOTE> <P> This means that: <PRE> The cache was not able to resolve the hostname presented in the URL. Check if the address is correct. </PRE> <P>Your cache administrator is <A HREF="mailto:Postmaster@konicaminolta.jp">Postmaster@konicaminolta.jp</A>. <BR clear="all"> <HR noshade size="1px"> <ADDRESS> Generated Wed, 12 Jul 2017 08:05:57 GMT by g3.konicaminolta.jp (squid/2.7.S TABLE9) </ADDRESS> </BODY></HTML>'
我find了这个。
https://github.com/facebook/php-webdriver/issues/382
然后尝试,但没有解决。
而我正在使用代理,所以我认为这是相关的代理。
所以,像这样编辑acceptance.suite.yml
class_name: AcceptanceTester modules: enabled: - WebDriver: # - PhpBrowser: url: 'http://symfony.demo' host: selenium.demo port: 4444 http_proxy: 'http://myproxy:8080' browser: chrome - \Helper\Acceptance
但解决不了。
我可以得到一些想法吗? 谢谢。