我通过终端使用Appium 1.6.3和我的测试用例使用IntelliJ。现在,我有一个应用程序,我需要测试一些UI插入,我想自动执行此操作。 这是我的代码
public class Register {
private AppiumDriver driver;
@Before
public void setup() throws MalformedURLException {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("device","Android");
//mandatory capabilities
capabilities.setCapability("deviceName","Android");
capabilities.setCapability("platformName","Android");
capabilities.setCapability("udid","my udid");
capabilities.setCapability("platformVersion", "7.1.1");
capabilities.setCapability("appPackage","app-package");
//activity
capabilities.setCapability("appActivity", "app-activity");
driver = new AndroidDriver(new URL("https://0.0.0.0:4723/wd/hub"), capabilities);
}
@After
public void tearDown() {
driver.quit();
}
@Test
public void register(){
WebElement barraBianca=driver.findElement(By.id("element id after the /"));
barraBianca.click();
barraBianca.sendKeys("0000000000");
WebElement verify=driver.findElement(By.id("id"));
verify.click();
}
}
那是我的问题。我启动服务器在终端中键入Appium然后在IntelliJ中执行我的整个程序,但是我收到错误"处理完成错误255"和字符串
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
与driver = new AndroidDriver(等等)相关
我哪里错了?
非常感谢你们