我正在尝试cloud.seetest.io
通过在 eclipse 中安装 appium studio 插件在云平台的 android 手机中运行我的测试,以便可以直接从 eclipse IDE 本身运行测试。
它总是给出错误
org.openqa.selenium.WebDriverException:无法创建新会话,因为未找到需要 HttpClient、InputStream 和 long 的“createSession”或无法访问
@BeforeMethod
@Parameters("deviceQuery")
public void setUp(@Optional("@os='android'") String deviceQuery)throws Exception{
init(deviceQuery);
// Init application / device capabilities
dc.setCapability(MobileCapabilityType.APP, "cloud:xxxxxxxx/.xxxx");
dc.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, "xxxxx");
dc.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, ".xxxxxx");
dc.setCapability(SeeTestCapabilityType.DEVICE_QUERY, deviceQuery);
dc.setCapability(SeeTestCapabilityType.TEST_NAME, "AndroidDemoTest");
dc.setCapability("appVersion", "1.0.10516");
dc.setCapability("testName", "AndroidDemoTest");
driver = new AndroidDriver<>(new URL(getProperty("url",cloudProperties) + "/wd/hub"), dc);
}