我需要酱实验室的认证方面的帮助。我想在酱汁实验室运行Serenity Java硒测试。我在Sauce Lab上注册,并获得了用户名和身份验证密钥。
我在宁静属性文件中设置了
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
答案 0 :(得分:0)
您的价值观似乎有些重复。您可以尝试这样设置值吗?
saucelabs.url=http://d.stanisXXXXX:XXXXX-4797@ondemand.saucelabs.com:80/wd/hub
saucelabs.user.id=d.stanisXXXXX
saucelabs.access.key=XXXXX-4797
也要调味no longer supports using Windows XP,因此您必须将其更新到Windows 7或更高版本。测试愉快!
答案 1 :(得分:0)
Saucelab技术支持回答了我的问题。事实是,我的帐户在EU DC中。因此,运行测试的URL端点应为:
字符串URL =“ https://” +用户名+“:” + ACCESS_KEY +“ @ ondemand.eu-central-1.saucelabs.com:443 / wd / hub”;
问题已解决。
是的,不再支持XP。