我是 Sauce 实验室的菜鸟。我第一次在 appium Desired 功能上运行我的 Sauce 实验室,我收到以下错误消息:
unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.
You used username 'USERNAME' and access key 'ACCESS_KEY' to authenticate, which are not valid Sauce Labs credentials.
我的问题是这样的:
它是什么?
我该如何解决?
我犯了一个新手错误吗?
愚蠢的问题,但要问。我如何查看
酱汁实验室中发生的事情?
这是我所需的功能代码:
public static final String USERNAME = "confidential";
public static final String ACCESS_KEY = "condfidential";
public static final String URL = "https://" + USERNAME + ":" + ACCESS_KEY + "@ondemand.saucelabs.com:443/wd/hub";
public static void main(String[] args) throws MalformedURLException{
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability("platformName", "iOS");
cap.setCapability("deviceName", "iPhone8 Simulator");
cap.setCapability("platformVersion", "11.3");
cap.setCapability("browserName", "Safari");
cap.setCapability("deviceOrientation", "portrait");
WebDriver driver= new RemoteWebDriver(new URL("http://USERNAME:ACCESS_KEY@ondemand.saucelabs.com:80/wd/hub"),cap);
driver.get("https://www.bbc.co.uk/");
错误信息:
Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.
You used username 'USERNAME' and access key 'ACCESS_KEY' to authenticate, which are not valid Sauce Labs credentials.
The following desired capabilities were received:
{'browserName': 'Safari',
'deviceName': 'iPhone8 Simulator',
'deviceOrientation': 'portrait',
'platformName': 'iOS',
'platformVersion': '11.3'}
Build info: version: '3.9.1', revision: '63f7b50', time: '2018-02-07T22:42:22.379Z'
System info: host: 'xxx-MacBook-Air.local', ip: '100.100.0.0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version: '1.8.0_71'
Driver info: driver.version: RemoteWebDriver
慕哥6287543
相关分类