zoukankan      html  css  js  c++  java
  • MAC appim自动化环境搭建

    1、node.js环境搭建

    2、npm安装

    3、cnpm安装

    4、appium安装

    5、homebrew安装

    6、libimobiledevice安装

    7、carthage安装

    8、ios-deploy安装

    9、appium-doctor检查appium ios环境

    10、安装WebDriverAgent。可直接使用 appium自带的

    在WebDriverAgent目录下执行以下命令

    mkdir -p Resources/WebDriverAgent.bundle

    sh ./Scripts/bootstrap.sh

    编译WebDriverAgent.xcodeproj

    Xcode打开当前目录下的WebDriverAgent.xcodeproj文件

           1、TARGETS->WebDriverAgentLib的Bundle Identifier更改为自己命名的Identifier。(所有Identifier注意保持一致!!)

           2、TARGETS->WebDriverAgentLib的Signing选择使用个人的证书。

           3、TARGETS->WebDriverAgentRunner的Signing选择使用个人的证书。

           4、PROJECT->WebDriverAgent的Product Bundle Identifier更改为自己命名的Identifier。(所有Identifier注意保持一致!!)

          5、TARGETS->WebDriverAgentLib的Product Bundle Identifier更改为自己命名的Identifier。(所有Identifier注意保持一致!!)

          6、TARGETS->WebDriverAgentRunner的Product Bundle Identifier更改为自己命名的Identifier。(所有Identifier注意保持一致!!)

          7、Device选择已连接的测试机

          8、点击build按钮来测试,按照步骤设置后,可build succeeded~    

          9、测试机上安装证书,执行以下命令:

    xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=测试机的udid' test

    如果没有报错证明安装成功,同时手机上会安装一个WebDriverAgent软件。需要在手机设置->通用->设备管理->信任开发者

    如果没有报错证

    https://www.cnblogs.com/yoyoketang/p/7368246.html

    环境搭建需要的工具如下:

    https://www.jianshu.com/p/f797f79f2ff4?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

    关于ANDROID_HOME配置

    https://blog.csdn.net/weixin_42602174/article/details/88039732?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

    关于JAVA_HOME配置

    https://blog.csdn.net/shuaicenglou3032/article/details/79100155

    IOS真机环境安装

    1、安装homebrew :/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    2、安装crathage:brew install carthage   第三方库管理工具,项目依赖管理

    3、安装依赖库:brew install libimobiledevice

    https://testerhome.com/topics/15617

    https://www.cnblogs.com/AIME/p/11312843.html

    https://www.cnblogs.com/fnng/p/12616466.html

  • 相关阅读:
    如何应对一些无语的面试题
    5W随想
    操作系统-文件的结构以及文件管理
    计算机网络--第二章--物理层笔记
    第一章计算机网络概述---OSI七层网络模型
    IDEA使用Maven创建webapp骨架无法创建Servlet文件与无法使用@WebServlet实现注解问题解决
    RabbitMQ常用的几种消息模型
    算法入门(二)队列
    Java线程安全与锁优化,锁消除,锁粗化,锁升级
    Centos7安装RabbitMQ详细教程
  • 原文地址:https://www.cnblogs.com/bufuhaoshiguang/p/13294859.html
Copyright © 2011-2022 走看看