zoukankan      html  css  js  c++  java
  • Python+appium自动化踩坑(二):Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.

    在使用appium启动手机应用时,报错:

    An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.

    现象:如图在Start Session 后,需要在手机上安装,Appium Settingio.appium.uiautomator2.server 、io.appium.uiautomator2.server.test,一切软件都装完成后,Appium报错:An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.

     如果终止某个软件安装,报错:An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'D:\Android\Sdk\platform-tools\adb.exe -P 5037 -s D3H0217C13000820 shell pm install -r /data/local/tmp/appium_cache/0cc1725a60a05dbb5d0d09256f2fc6ece7e3b10f.apk' exited with code 1'; Stderr: ''; Code: '1'

     

     最后在全部日志中查找出,If you wish to use that automation instead of UiAutomator2, please add 'automationName=UiAutomator1' to your desired capabilities。

     

     

     所以,在添加参数的时候加上参数 automationName=UiAutomator1。结果成功解决问题。

  • 相关阅读:
    使用systemctl管理指定服务需要做的配置
    挖矿病毒
    灰度发布系统
    血一般的教训,请慎用insert into select
    关于程序bug的闲谈
    来自一个网络监控软件的自述
    为什么CTO、技术总监、架构师都不写代码,还这么牛逼?
    原来 Elasticsearch 还可以这么理解
    爬了20W+条猫咪交易数据,它不愧是人类团宠
    NPUCTF2020 这是什么觅🐎
  • 原文地址:https://www.cnblogs.com/deliaries/p/12449071.html
Copyright © 2011-2022 走看看