【发布时间】:2016-08-23 21:18:17
【问题描述】:
我正在尝试使用 Codeception 和 BrowserStack 在网站上进行验收测试。我正在测试的网站需要在 URL 后附加一个查询字符串才能登录。
例如:https://examplesite.com/?realm=ab-cd
我已尝试在acceptance.suites.yml 文件中使用此网址:
class_name: AcceptanceTester
modules:
enabled:
- WebDriver:
url: http://examplesite.com/?realm=ab-cd
host: 'hostmaster@examplesite.com:mykey@hub.browserstack.com'
port: 80
browser: firefox
capabilities:
javascriptEnabled: true
我也尝试在实际测试中放置一个 sendGET:
$I->sendGET('/?realm=ab-cd');
两次尝试都导致无法登录。正确的方法是什么?
【问题讨论】:
标签: codeception