当前位置: 首页 > news >正文

phpcms仿站教程/河北网站建设制作

phpcms仿站教程,河北网站建设制作,那些彩票广告网站怎么做的,大众团购网站怎么做前言: Appium 是一个自动化测试开源工具,支持 iOS 平台和 Android 平台上的原生应用,web 应用和混合应用。 本次环境配置相关: macOS:10.13.4 Appium-desktop:1.6.1 Xcode:9.3.1 一、环境配置 1…

前言:

Appium 是一个自动化测试开源工具,支持 iOS 平台和 Android 平台上的原生应用,web 应用和混合应用。

本次环境配置相关:
macOS:10.13.4
Appium-desktop:1.6.1
Xcode:9.3.1


一、环境配置

1、 安装homebrew:

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

2、 安装libimobiledevice:

$ brew install libimobiledevice --HEAD

3、 安装carthage:

$ brew install carthage

4、安装node:

$ brew install node

5、安装npm:

$ brew install npm

6、安装ios-deploy:

$ npm install -g ios-deploy

8、安装xcpretty:

$ gem install xcpretty

9、安装appium,appium-doctor

进入官网,下载Appium-1.6.1.dmg,安装即可。

当然你可以使用命令:npm install -g appium来安装appium,但是后面就会各种报错!!(别问我是怎么知道的,我搞了2天。)

$ npm install -g appium-doctor

10、使用appium-doctor 检查Appium iOS环境环境

appium-doctor --ios

info AppiumDoctor Appium Doctor v.1.4.3
info AppiumDoctor ### Diagnostic starting ###
info AppiumDoctor   The Node.js binary was found at: /usr/local/bin/node
info AppiumDoctor   Node version is 10.1.0
info AppiumDoctor   Xcode is installed at: /Applications/Xcode.app/Contents/Developer
info AppiumDoctor   Xcode Command Line Tools are installed.
info AppiumDoctor   DevToolsSecurity is enabled.
info AppiumDoctor   The Authorization DB is set up properly.
info AppiumDoctor   Carthage was found at: /usr/local/bin/carthage
info AppiumDoctor   HOME is set to: /Users/wangjuan
info AppiumDoctor ### Diagnostic completed, no fix needed. ###
info AppiumDoctor
info AppiumDoctor Everything looks good, bye!
info AppiumDoctor

二、安装WebDriverAgent

1、进入appium安装目录下WebDriverAgent文件夹,具体路径参照自己的路径,可以通过find命令查找

cd /Applications/Appium.app/Contents/Resources/app
/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

2、在WebDriverAgent目录下执行以下命令

mkdir -p Resources/WebDriverAgent.bundle

sh ./Scripts/bootstrap.sh

3、编译WebDriverAgent.xcodeproj

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

注意️:进入项目后要编辑一些内容,请无比按照步骤全部修改。步骤见下图!!

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

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

image.png

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

image.png

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

image.png

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

image.png

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

image.png

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

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

image.png

9、测试机上安装证书,执行以下命令:
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=测试机的udid' test

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

三、Appium Client端

Appium Client有Ruby,Python,Java三个版本,可自行选择自己喜欢的安装即可,本次只针对Python版安装:

pip install Appium-Python-Client


以上,接下来可以定位元素,推荐使用App Inspector,开始iOS自动化之旅吧~~

http://www.lbrq.cn/news/1307431.html

相关文章:

  • 网站开发近期市场/软文类型
  • google play/seo专员岗位职责
  • 美食网站怎样做锅包肉/百度外推排名
  • 企业做网站营销/如何进行网站推广?网站推广的基本手段有哪些
  • 建筑类招聘网站有哪些/灰色产业推广引流渠道
  • 自己做购物网站需要什么/浙江网站建设平台
  • 深圳市手机网站建设企业/seo优化内页排名
  • sql数据库查询网站模板/域名网
  • 做外汇新闻网站/百度seo排名查询
  • 网站优化代码/网站seo推广公司靠谱吗
  • 如何做一网站/软文写作服务
  • 网站制作思路/张家港seo建站
  • 网站如何提高百度排名/传统营销方式有哪些
  • 如何建个使用自己帐户的网站/惠州网站排名提升
  • 网站整体运营思路/百度热搜榜怎么打开
  • 做搜狗pc网站排名/优化大师电脑版官方免费下载
  • 与网站签约/百度一下 你就知道首页官网
  • 做动态网站需要多少钱/seo优化网络推广
  • 哪个网站教做公众号/百度有哪些产品
  • 哪些网站可以做h5/在线查询网站收录
  • 专门做油画交流的网站/新闻式软文经典案例
  • 哪个cms可以做交友网站/网络营销包括的主要内容有
  • 网站设计师对应的专业/深圳谷歌seo公司
  • wordpress文章字号/百度seo网站优化
  • 开发网站能赚多少钱/提交链接
  • 惠州做棋牌网站建设哪家公司便宜/seo资源咨询
  • 网站建设与运营市场开拓方案/百度指数数据分析报告
  • 上海中小企业网站建设/广州aso优化公司 有限公司
  • 网站建设模式/优化网站视频
  • 响应网站怎么做教学视频/关键词查询网站
  • 产品经理如何绘制流程图
  • 广州 VR 森林防火系统功能探究​
  • 面向向量检索的教育QA建模:九段日本文化研究所日本语学院的Prompt策略分析(6 / 500)
  • 网络爬虫的相关知识和操作
  • 前端面试专栏-工程化:25.项目亮点与技术难点梳理
  • Linux 环境下安装 Node.js v16.13.0 完整指南