操作步骤:

1、直接启动 Appium (我用的是 version 1.10.0)

2、打开命令窗口,切换到 UICrawler 所在路径

3、执行命令 java -jar UICrawler-2.23.jar -f config.yml -u deviceSerialNumber

4、执行后不会安装appium所需要特定 apk 程序,报错 could not sign with default certificate

完整信息如下:

 E:\BaiduNetdiskDownload\UICrawler>java -jar UICrawler-2.23.jar -f config.yml -u DIYTH
YTCCQBIV47D
13:39:43.822 [main] INFO Crawler - Version is 2.23 ---DEC/7/2018
13:39:43.822 [main] INFO Crawler - PC platform : Windows 10
13:39:43.822 [main] INFO Crawler - System File Encoding: GBK
13:39:43.822 [main] INFO Crawler - E:\BaiduNetdiskDownload\UICrawler\config.yml
13:39:43.822 [main] INFO Crawler - Crawler loop count is 1
13:39:43.822 [main] INFO Crawler - Crawler loop No is 1
13:39:43.822 [main] INFO util.ConfigUtil - Method: initialize
13:39:43.822 [main] INFO util.ConfigUtil - Reading config file E:\BaiduNetdiskDownlo
ad\UICrawler\config.yml
13:39:43.963 [main] INFO util.ConfigUtil - Config : PORT = 4723
13:39:43.963 [main] INFO util.ConfigUtil - Config : MAX_CLICK_COUNT = 100000
13:39:43.963 [main] INFO util.ConfigUtil - Config : DB_LOG = false
13:39:43.963 [main] INFO util.ConfigUtil - Config : PERF_LOG = false
13:39:43.963 [main] INFO util.ConfigUtil - Config : DOM_DISPLAY = false
13:39:43.979 [main] INFO util.ConfigUtil - Config : VIDEO_VERTICAL = true
13:39:43.979 [main] INFO util.ConfigUtil - Config : DEVICE_NAME = null
13:39:43.979 [main] INFO util.ConfigUtil - Config : APPIUM_SERVER_IP = 0.0.0.0
13:39:43.979 [main] INFO util.ConfigUtil - Config : ITEM_BLACKLIST = [客服, 电话, 不
允许, 拒绝, 拍照, 禁止, 呼叫, 低电量模式, 关闭, //*[@text="去付款"]]
13:39:43.979 [main] INFO util.ConfigUtil - rootDir is E:\BaiduNetdiskDownload\UICraw
ler\crawler_output\DIYTHYTCCQBIV47D-2019-01-14-13_39_43
13:39:43.979 [main] INFO util.ConfigUtil - Config : ANDROID_PACKAGE = com.android.se
ttings
13:39:43.979 [main] INFO util.ConfigUtil - Config : ANDROID_MAIN_ACTIVITY = /com.and
roid.settings.Settings
13:39:44.010 [main] INFO util.Driver - ===== Method : prepareForAppiumAndroid
13:39:44.010 [main] INFO util.Driver - appPackage com.android.settings
13:39:44.010 [main] INFO util.Util - System name is :Windows 10
13:39:44.010 [main] INFO util.Util - Method exeCmd : [cmd, /c, adb -s DIYTHYTCCQBIV4
7D shell getprop | findstr version.sdk]
13:39:44.572 [main] INFO util.Util - [cmd, /c, adb -s DIYTHYTCCQBIV47D shell getprop
| findstr version.sdk] ---output is : [ro.build.version.sdk]: [24]
[ro.mediatek.version.sdk]: [4]
13:39:44.572 [main] INFO util.Driver - sdk version : 24
13:39:44.588 [main] INFO util.Driver - Using uiautomator2
13:39:44.588 [main] INFO util.Driver - http://0.0.0.0:4723/wd/hub
Exception in thread "main" org.openqa.selenium.WebDriverException: It is impossible t
o create a new session because 'createSession' which takes HttpClient, InputStream an
d long was not found or it is not accessible
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'L1-dfdfdf-W', ip: '192.168.1.103', os.name: 'Windows 10', os.ar
ch: 'amd64', os.version: '10.0', java.version: '1.8.0_91'
Driver info: driver.version: Driver
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumC
ommandExecutor.java:195)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCom
mandExecutor.java:209)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandEx
ecutor.java:231)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:54
3)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMob
ileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.ja
va:207)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:130
)
at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobi
leDriver.java:38)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:84)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:94)
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:93)
at util.Driver.prepareForAppiumAndroid(Driver.java:876)
at Crawler.main(Crawler.java:226)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
pl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumC
ommandExecutor.java:185)
... 14 more
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occur
red while processing the command. Original error: Could not sign with default certifi
cate. Original error Command ''C:\\Program Files\\Java\\jdk1.8.0_91\\bin\\java.exe' -
jar 'C:\\Program Files (x86)\\Appium\\resources\\app\\node_modules\\appium-adb\\jars\
\sign.jar' 'C:\\Program Files (x86)\\Appium\\resources\\app\\node_modules\\appium-uia
utomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk' --override'
exited with code 1
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'L1-dfdfdf-W', ip: '192.168.1.103', os.name: 'Windows 10', os.ar
ch: 'amd64', os.version: '10.0', java.version: '1.8.0_91'
Driver info: driver.version: Driver
remote stacktrace: UnknownError: An unknown server-side error occurred while processi
ng the command. Original error: Could not sign with default certificate. Original err
or Command ''C:\\Program Files\\Java\\jdk1.8.0_91\\bin\\java.exe' -jar 'C:\\Program F
iles (x86)\\Appium\\resources\\app\\node_modules\\appium-adb\\jars\\sign.jar' 'C:\\Pr
ogram Files (x86)\\Appium\\resources\\app\\node_modules\\appium-uiautomator2-server\\
apks\\appium-uiautomator2-server-debug-androidTest.apk' --override' exited with code
1
at getResponseForW3CError (C:\Program Files (x86)\Appium\resources\app\node_modul
es\appium-base-driver\lib\protocol\errors.js:826:9)
at asyncHandler (C:\Program Files (x86)\Appium\resources\app\node_modules\appium-
base-driver\lib\protocol\protocol.js:447:37)
at process._tickCallback (internal/process/next_tick.js:68:7)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcc
essorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstr
uctorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeR
esponse.java:57)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction
$2(W3CHandshakeResponse.java:104)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(Protoc
olHandshake.java:123)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.jav
a:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java
:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:47
1)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandsha
ke.java:126)
... 19 more

解决办法:

1、win10上带了管理员功能,普通权限对访问操作权限不够会导致读写失败

2、以管理员的形式启动 Appium 应用并启动服务,再次执行自动遍历即可成功

Win10上启动UICrawler自动遍历时报 "org.openqa.selenium.WebDriverException: An unknown server-side error occur red while processing the command. Original error: Could not sign with default certifi cate."的更多相关文章

  1. 无法在web服务器上启动调试,服务器不支持对ASP.NET 或ATL Server应用程序进行调试。

    无法在web服务器上启动调试,服务器不支持对ASP.NET 或ATL Server应用程序进行调试. a>.DCOM配置里的属性灰色不可用的解决方法,   1>.管理工具->组件服务 ...

  2. 在一台win10上启动多个mysql

    1.因为项目需要用一个已经有数据的mysql,而我之前已经安装了一个mysql(之前的mysql上面也是有东西,不想删除)  想办法.... mysqld.exe --defaults-file=D: ...

  3. 【win10主机】访问virtualbox上【32位winXP系统虚拟机】上启动的项目

    win10上创建虚拟网卡: 1,右键此电脑点击管理——设备管理器——网络适配器: 2,点左上角菜单栏的 操作——添加过时硬件: 3,点下一步 4,点安装我手动从列表选择的硬件(高级)M 5,点网络适配 ...

  4. 【win10主机】连接virtualbox上【32位winXP系统虚拟机】上启动的mysql

    问题Q: 在virtualbox上启动winXP系统虚拟机后,启动含oa项目的tomcat,数据库服务也运行起来了,虚拟机上连接无误: 在上一篇<主机访问 虚拟机启动的项目>基础上,尝试连 ...

  5. 实测win10 efi启动及centos7双系统引导顺序修改

    安装win10 安装win10过程中,系统自动建立esp分区,分区格式为FAT16,目录如下 1,EFI/Boot文件夹保持不动 删除 EFI/Microsoft/boot/ 文件夹下面除BCD文件外 ...

  6. win10上修改docker的镜像文件存储位置

    记住:修改的是docker从服务器上拉下来的镜像文件存储位置(本地),是不是镜像源地址(服务器) 首先 win10下的docker有可视化操作界面和命令行操作,下载了docker-ce.exe双击后就 ...

  7. 无法在Web服务器上启动调试,与Web服务器通信时出现身份验证错误

    问题描述: 我使用的是修改hosts,模拟真实网址来进行调试的.具体是这样的:我修改hosts文件,把某个域名,如www.163.com映射为127.0.0.1,然后在IIS信息管理器中,创建一个网站 ...

  8. [转]在BBB启动时自动加载dtbo(或执行脚本、运行程序)

    启动时自动加载dtbo,实际上就是做了一个cape.官方推荐的方法是用eeprom来实现,请参考我的博文<为BBB制作专属自己的cape(一)>和<为BBB制作专属自己的cape(四 ...

  9. 无法在web服务器上启动调试。调试失败,因为没有启用集成windows身份验证

    ----注意:以管理员身份运行VS C#中ASP.NET Web应用程序编译时的错误:无法在web服务器上启动调试.调试失败,因为没有启用集成windows身份验证. 解决:打开IIS,在IIS里查看 ...

随机推荐

  1. Makefile.am文件配置

    Makefile.am Makefile.am是一种比Makefile更高层次的编译规则,可以和configure.in文件一起通过调用automake命令,生成Makefile.in文件,再调用./ ...

  2. 和我一起打造个简单搜索之SpringDataElasticSearch入门

    网上大多通过 java 操作 es 使用的都是 TransportClient,而介绍使用 SpringDataElasticSearch 的文章相对比较少,笔者也是摸索了许久,接下来本文介绍 Spr ...

  3. System V 与 POSIX 简介与对比

    当我们在 Linux 系统中进行进程间通信时,例如信号量,消息队列,共享内存等方式,会发现有System V以及POSIX两种类型.今天我们就来简单介绍下它们. POSIX: POSIX(Portab ...

  4. [转]Angular2: Cannot read property 'name' of undefined

    本文转自:https://stackoverflow.com/questions/39755336/angular2-cannot-read-property-name-of-undefined 处理 ...

  5. c# 对Url 解码编码

    /// <summary> /// 对Url进行编码 /// </summary> /// <param name="url">url</ ...

  6. HDFS 安全模式的理解

    安全模式是hadoop的一种保护机制,用于保证集群中的数据块的安全性. 当集群启动的时候,会首先进入安全模式.当系统处于安全模式时会检查数据块的完整性.假设我们设置的副本数(即参数dfs.replic ...

  7. 站在DevOps肩膀上的TestOps(一)

    一十一 发表于 2018-03-14 15:50:03 TestOps   摘要: DevOps团队的职责是“无摩擦发展”. 这是对“速度需求”驱动的发展理念的一种渴望,以及有意识地去除从概念到客户的 ...

  8. MySQL chartset

    -- # https://dev.mysql.com/doc/refman/8.0/en/charset-database.html -- create database aixinyz; -- 默認 ...

  9. JqGrid: paging int asp.net

    https://www.codeproject.com/Articles/1118363/GridView-with-Server-Side-Filtering-Sorting-and-Pa http ...

  10. Python 基于urllib.request封装http协议类

    基于urllib.request封装http协议类 by:授客QQ:1033553122 测试环境: Python版本:Python 3.3   代码实践 #!/usr/bin/env python ...