我正在尝试在使用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: '[email protected]:[email protected]'
port: 80
browser: firefox
capabilities:
javascriptEnabled: true
我也试图把一个sendGET在实际测试:
$I->sendGET('/?realm=ab-cd');
这两种尝试都导致无法登录。正确的方法是什么?