【发布时间】:2023-03-07 09:22:01
【问题描述】:
我需要一些关于酱实验室身份验证的帮助。我想在酱实验室上运行 serenity java selenium 测试。我在 Sauce Lab 上注册并获得了用户名和身份验证密钥。
我在 serenity 属性文件中设置:
saucelabs.url=http://d.stanisXXXXX:XXXXX-4797@ondemand.saucelabs.com:80/wd/hub
saucelabs.user.id=d.stanisXXXXX
saucelabs.access.key=XXXXX-4797
saucelabs.target.platform=XP
saucelabs.driver.version=26
然后我运行测试。我收到身份验证错误:
Caused by: net.thucydides.core.webdriver.DriverConfigurationError: Could not
instantiate new WebDriver instance of type class
org.openqa.selenium.remote.RemoteWebDriver (Unable to parse remote response:
Misconfigured -- Sauce Labs Authentication Error.
You used username 'd.stanisXXXXX' and access key 'XXXXXXXX-XXXX-XXXX-XXXX-
XXXXeefa4797' to authenticate, which are not valid Sauce Labs credentials.
...Caused by: org.openqa.selenium.json.JsonException: Unable to determine
type from: M. Last 1 characters read: M
【问题讨论】: