美文网首页
macaca环境搭建

macaca环境搭建

作者: ALISA199812 | 来源:发表于2020-07-26 20:11 被阅读0次

在用友三个月的实习生活,主要负责自动化测试,前期搭环境换的时间挺多的,做了下整理:

1.pycharm安装及激活2019.03(亲测有效):

激活教程:https://www.zhihu.com/search?type=content&q=pycharm2019%E6%BF%80%E6%B4%BB
激活码:
520E5894E2-eyJsaWNlbnNlSWQiOiI1MjBFNTg5NEUyIiwibGljZW5zZWVOYW1lIjoicGlnNiIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJVbmxpbWl0ZWQgbGljZW5zZSB0aWxsIGVuZCBvZiB0aGUgY2VudHVyeS4iLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiUlMwIiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiV1MiLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJSRCIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IlJDIiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiREMiLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJEQiIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IlJNIiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiRE0iLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJBQyIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiUFMi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l94wVUhdkCfL0GpJrMSCDEK+XEurU18Hb7WT+ThXbkdl6VpFdHsRvqAnhR2g4b+Qzgidmuky5NUZVfEaZqV/g==

2.安装python环境(百度)

安装pip
python -m pip install --upgrade pip -i https://pypi.douban.com/simple
pip修改源方法
pip install **(包名) -i https://pypi.tuna.tsinghua.edu.cn/simple

3.macaca环境配置参考链接

https://testerhome.com/topics/12277?order_by=like&

macaca环境配置排坑参考链接

https://testerhome.com/topics/12278

jdk安装:

https://www.cnblogs.com/iceb/p/7561752.html
创建JAVA_HOME 值是你的刚刚jdk的安装目录
CLASSPATH .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar(注意最前面有一点)
编辑Path:把值放到最前边  %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

验证:java -version
javac -version

用到的几个命令

npm config set prefix "D:\macaca\nodejs\node_global"
npm config set cache "D:\macaca\nodejs\node_cache"

cnpm i macaca-android -g

npm i app-inspector -g

检查是否成功

adb devices

app-inspector -u 设备id

tips:

如果没有2个debug文件,主要原因是API版本不对,最好选择api26

相关文章

  • Macaca环境搭建(Android + Mac)

    Macaca环境搭建(Android)Macaca官网 本文章所述皆在mac环境完成的情况下完成。 1.配置J...

  • macaca环境搭建

    在用友三个月的实习生活,主要负责自动化测试,前期搭环境换的时间挺多的,做了下整理: 1.pycharm安装及激活2...

  • 搭建Macaca环境(for Mac)

    一、搭建iOS环境 1、安装Xcode:在Mac App Store下载即可 首次启动Xcode,需要同意协议(如...

  • MacOS搭建Macaca环境

    官方配置环境教程社区参考帖子1 社区参考帖子2 环境要求: node.js v6.0或以上 Xcode v8.3...

  • macaca doctor之Android证书问题

    简单介绍 在搭建macaca环境的过程中出现关于Android的"NotacceptedAndroid SDKli...

  • Macaca环境搭建(iOS+Mac)

    Macaca环境搭建(官方文档) 1.安装Xcode 2.安装Homebrew(教程) 3.安装carthage ...

  • macaca环境搭建——从开始到放弃

    macaca环境搭建——从开始到放弃,哦不……是完成,emm是完成……对完成…… 安装准备(本文以windows为...

  • Mac上搭建Macaca

    主要介绍如何在Mac上搭建Macaca,包括准备、安装和运行。 一、基础环境 1、安装brew: ruby−e"r...

  • macaca之app-inspector

    简单介绍 之前已经将macaca的环境搭建好了,现在就需要进行元素的定位,这里使用app-inspector,然后...

  • macaca(一) windows下环境搭建

    macaca 喜欢你就点这里 1、macaca 是啥呢 macaca是一套自动化解决方案,支持支持主流的移动技术...

网友评论

      本文标题:macaca环境搭建

      本文链接:https://www.haomeiwen.com/subject/ugjglktx.html