zoukankan      html  css  js  c++  java
  • appium V1.17.1报错 An unknown server-side error occurred while processing the command.original error:pkg:/data/local/tmp/appium_cache

    点击报错

     

    An unknown server-side error occurred while processing the command.original error:pkg:/data/local/tmp/appium_cache

    解决办法:

    增加配置如下:

    automationName=UiAutomator1

     再次运行 start session,正常

     

     注:用 automationName=UiAutomator2 运行仍然报错

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Pycharm中的警告如下:

    DEPRECATION WARNING:
    [Appium] 
    [Appium]   The 'automationName' capability was not provided in the desired 
    [Appium]   capabilities for this Android session
    [Appium] 
    [Appium]   Setting 'automationName=UiAutomator2' by default and using the 
    [Appium]   UiAutomator2 Driver
    [Appium] 
    [Appium]   The next major version of Appium (2.x) will **require** the 
    [Appium]   'automationName' capability to be set for all sessions on all 
    [Appium]   platforms
    [Appium] 
    [Appium]   In previous versions (Appium <= 1.13.x), the default was 
    [Appium]   'automationName=UiAutomator1'
    [Appium] 
    [Appium]   If you wish to use that automation instead of UiAutomator2, please 
    [Appium]   add 'automationName=UiAutomator1' to your desired capabilities
    [Appium] 
    [Appium]   For more information about drivers, please visit 
    [Appium]   http://appium.io/docs/en/about-appium/intro/ and explore the 
    [Appium]   'Drivers' menu

    根据提示在配置中增加

    automationName=UiAutomator2

    如下:

     再次运行,虽然警告没有了,但是用例还是运行失败

    修改为如下后,运行成功

    automationName=UiAutomator1

     运行结果如下:

  • 相关阅读:
    vue项目常用
    centos7之关于时间和日期以及时间同步的应用
    nginx 配置 https
    nginx 转发 minio 服务
    MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。
    SpringCloud第三弹(Feign客户端)
    IDEA代码里的黄色提示
    H3C配置tftp参数,搭配WDS,windows部署服务器。
    手动为nextclou添加插件(Collabora Online 在线OFFICE)
    nextcloud集成LDAP登录
  • 原文地址:https://www.cnblogs.com/may18/p/14465008.html
Copyright © 2011-2022 走看看