Appium Appium IOS APP Test In IOS Simulator meet Errors,help

梦桥 · 2015年04月09日 · 最后由 陈恒捷 回复于 2015年04月09日 · 1734 次阅读
info: [debug] And launch timeouts (in ms): {"global":90000}

info: [debug] [INST STDERR] posix spawn failure; aborting launch (binary == /var/folders/sd/7gp86z391kg74s6s3k9j6rh80000gn/T/11539-4580-14evj4d/Payload/test.app/test).

info: [debug] [INST STDERR] Instruments Trace Error : Error Starting Recording

info: [debug] [INSTSERVER] Instruments exited with code 253

info: [debug] Killall instruments

this is java Client Script Code :

  File appDir = new File("/Users/Lindows/Downloads/");
//  File app = new File(appDir, "TestApp.app.zip");
  File app = new File(appDir, "test.ipa");
  DesiredCapabilities capabilities = new DesiredCapabilities();
  capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, "");
  capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "6.1");
  capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone Simulator");
  capabilities.setCapability(MobileCapabilityType.APP, "http://10.24.75.242/iosapp/test.ipa");
  IOSDriver driver = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
共收到 1 条回复 时间 点赞

我不确定 appium 是否支持使用网络位置作为 app 路径。
你试试用本地绝对路径?
另外,最好把 server 从接到 request(一一>) 到返回 response(<——) 的完整 log 都贴上,更方便看执行了什么步骤

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册