问题描述
我正在尝试使用 docker 运行 codeception。在网上找到了一些教程,但所有教程都假设测试仅针对您的 localhost 域运行。这就是我现在所拥有的。它适用于我在本地主机上运行的应用程序。
actor: AcceptanceTester
modules:
enabled:
- WebDriver:
url: http://web/ // this is my docker image name where apache is
host: selenium-chrome
browser: chrome
window_size: false
- Yii2:
configFile: 'config/test.PHP'
entryScript: index-test.PHP
transaction: true
part: [orm,url]
cleanup: true
- Asserts
但是我为一个子域(例如:admin.localhost)运行了相同的应用程序,但我不知道如何在测试中使用这个子域。在使用 docker 之前,我会像这样简单设置 URL:
url: http://admin.localhost
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)