- 在本地代码调试成功后,就想把代码放置到jenkins上尝试每日自动运行代码,进行测试。在这个过程中,会涉及到远程调用appium server。即,代码在机器A上,运行在机器B上。
- 我先尝试代码在本地(10.0.6.163),appium server在虚拟机内(10.123.86.177)。
- 以下是我启动appium server的代码:
public static AndroidDriver<WebElement> setup() throws Exception{
System.out.println("Initializing...");
File classpathRoot = new File(System.getProperty("user.dir"));
File appDir = new File(classpathRoot, "/apps");
File app = new File(appDir,