我正在尝试创建带有协同欺骗的测试,它将检查页面在高负载的情况下是否正常工作。
不幸的是,如果页面负载非常高,并且测试开始,我会得到这样的错误:
[..]
[Codeception\Exception\ModuleConfig]
Codeception\Util\Mink module is not configured!
Provided URL can't be accessed by this driver.[curl] 28: Operation timed out after 30031
milliseconds with 0 out of -1 bytes received [url] http://xxxx.xxx/app_db2.php
[..]是否有可能将Mink超时设置为更高的值?
发布于 2014-03-31 22:47:01
您可以通过您的测试套件配置来设置curl选项,就像在Codeception文档中的example中一样。
在您的情况下,您需要CURLOPT_TIMEOUT,请参见curl_setopt reference
modules:
enabled: [PhpBrowser]
config:
PhpBrowser:
url: 'http://localhost'
curl:
CURLOPT_TIMEOUT: 50000 # timeout in seconds发布于 2016-03-14 01:32:00
这与以下帖子相关:Codeception ignores CURLOPT_TIMEOUT
存在一个阻止设置此值的共骗错误。使用最新版本的协同欺骗>=2.0.15,您可以通过CURLOPT_TIMEOUT_MS来完成您想要做的事情。
https://stackoverflow.com/questions/22757141
复制相似问题