51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1535|回复: 1
打印 上一主题 下一主题

appium报错合集

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2018-2-26 16:29:58 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-20 21:44 , Processed in 0.060771 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表