当前位置:网站首页>Robot Framework移动端自动化测试----01环境安装
Robot Framework移动端自动化测试----01环境安装
2022-07-25 07:16:00 【weixin_39430584】
环境安装:
1、安装python37版本
2、安装robotframework
3、安装python测试库-appium-python-client :pip install appium-python-client
4、安装appium库robotframework-appiumlibrary:pip install robotframework-appiumlibrary
5、已安装安卓模拟器(本文使用夜神模拟器)。
6、安装appium(下载地址:Releases · appium/appium-desktop · GitHub)。
1)server下载地址:
Releases · appium/appium-desktop · GitHub
2)appium-inspector下载地址:
https://github.com/appium/appium-inspector
7、安装andriod sdk(下载地址:https://www.androiddevtools.cn/ )
sdk安装步骤:
1)下载安装包:
2)开始安装:

3)安装完成后,运行SDK Manager.exe

4)选择要安装的包
必须安装:
Tools/Android SDK Tools
Tools/Android SDK Platform-tools
Tools/Android SDK Build-tools
选择最新的Android版本安装
自动化测试要用的:
Extras/Google USB Driver
Extras/Google Web Driver
5)点击Install packages等待安装完成即可
6)配置环境变量
在系统变量新建:ANDROID_HOME,对应变量值为:(sdk安装路径)
在path里面添加%ANDROID_HOME%\tools和%ANDROID_HOME%\platform-tools
7)验证:cmd中输入adb命令;

8、启动夜神模拟器,在windwos命令窗口输入命令:adb connect 127.0.0.1:62001
会返回connected;
也可以使用命令:
adb devices #查看是否连接的设备;
9、定位元素:
在上一步连接好设备后我们可以打开sdk自带的素定位的工具,在.../sdk/tools/uiautomatorviewer.bat
点第二个按钮将手机同步到工具上进行元素定位

边栏推荐
- PADS导出gerber文件
- Million level element optimization: real-time vector tile service based on PG and PostGIS
- runtimecompiler 和 runtimeonly是什么
- 【云原生】原来2020.0.X版本开始的OpenFeign底层不再使用Ribbon了
- Traffic is not the most important thing for the metauniverse. Whether it can really change the traditional way of life and production is the most important
- [knowledge summary] block and value range block
- 线代(矩阵‘)
- Day by day, month by month | Shenzhen potential technology released the extreme accelerated version of molecular docking engine uni docking
- 章鱼网络 Community Call #1|开启 Octopus DAO 构建
- QT actual combat case (53) -- using qdrag to realize the drag puzzle function
猜你喜欢

BOM概述

Luo min's backwater battle in qudian

Cluster chat server: summary of project problems

vulnhub CyberSploit: 1

Million level element optimization: real-time vector tile service based on PG and PostGIS

What if Oracle 19C migration encounters large lob tables?

9 best engineering construction project management systems

Not only log collection, but also the installation, configuration and use of project monitoring tool sentry

Luo min from qudian, prefabricate "leeks"?

2022 Shenzhen cup
随机推荐
How to use network installation to deploy multiple virtual servers in KVM environment
【每日一题】1184. 公交站间的距离
微信小程序wx.request接口
What are runtimecompiler and runtimeonly
Price reduction, game, bitterness, etc., vc/pe rushed to queue up and quit in 2022
Ask the bosses: MySQL CDC stores configuration data, and Kafka has history
With apple not making money, the 2trillion "fruit chain" abandons "fruit" and embraces "special"
Go basic notes_ 5_ Process statement
【刷题笔记】搜索插入位置(二分法的活用)
paddlepaddle 34 调整模型的layer结构与forward流程(实现layer的增删改与forward的修改)
Two week learning results of machine learning
When providing digital talent services, Xi Zhi quickly opened its own digital school for each organization
Incremental crawler in distributed crawler
第一启富金怎么样
scrapy定时爬虫的思路
knapsack problem
[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (V)
Default value of dart variable
Rust standard library - implement a TCP service, and rust uses sockets
Leave the factory and sell insurance