我正在嘗試在使用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');
這兩種嘗試都導致無法登錄。正確的方法是什麼?