51Testing软件测试论坛

标题: appium报错合集 [打印本页]

作者: 一月蔷薇_456    时间: 2018-2-26 16:29
标题: appium报错合集
1.appium报错

org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible
causes are invalid address of the remote server or browser start-up failure.

1.cmd 输入appium -a 127.0.0.1 -p 4723 -U 98xxx –no-reset
提示信息:
error: uncaughtException: Cannot find module ‘internal/fs’ date=Thu May 18 2017
09:36:30 GMT+0800 (中国标准时间), pid=10648, uid=null, gid=null, cwd=D:\Program
等等

driver = new AndroidDriver(new URL(“http://127.0.0.1:4723/wd/hub“), capabilities)
代码内地址写错,更改后Ok
另,
  1. @After

  2. public void tearDown() throws Exception {

  3.     driver.quit();
  4. }
复制代码
driver.quit();
这行代码添加后Ok,调试过程中去掉了,忘记添加。

2.第二个错误
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original
error: Remote install failed: pkg: /data/local/tmp/c0c81c9ff864615633fa70f2f4d92955.apk

Failure [INSTALL_FAILED_VERSION_DOWNGRADE]) (WARNING: The server did not provide any
stacktrace information)

手机端需要确认才能安装软件到手机,点击确定安装后Ok


作者: 梦想家    时间: 2018-2-26 17:27





欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2