当前位置:网站首页>Appium自动化测试
Appium自动化测试
2022-07-21 00:53:00 【诺一呦~】
APP开发环境搭建
1.安装android studio
2.确定SDK目录
3.创建虚拟机
4.为了方便后续快捷启动,配置环境变量
appium环境搭建
1.appium-server端
2.appium-inspector查看器,属于客户端
3.appium-python-client端
pip install Appium-Python-Client
连接设备,adb(android debug bridge)包含三个部分
1.abd客户端,发送指令的
2.server服务端,接受指令的,发现设备,连接设备
3.adbd守护程序,在android系统中,执行命令
连接真实设备
开启开发者模式: 设置>关于>版本号(MIUI办号)> 连续点击7次
开启USB调试:开发者选项> USB调试
连接USB:略
连接模拟器
emulator -avd 设备名称
adb相关命令(先启动服务在连接设备)
1.adb kill-server 杀死服务
2.adb 重启服务
3.adb devices 查看已有连接
4.adb install app包路径
5.adb pull 手机上的文件路径 从手机上下载文件
6.adb push 本地文件路径 手机文件路径 文件从本地上传到手机
7.adb shell screencap 路径 截屏
8.am (activity manage)activity是app的一部分
9.pm(package manage)package是android一部分
10.android自动化控制基于adb+appium.settings
基于appium自动化控制app
1.启动appium-server
2.启动appium-inspector
{
"platformName": "Android",
"platformVersion": "11.0",
"deviceName": "emulator-5554",
"automationName": "UiAutomator2",
"app": "D:\automaster_release_1.3.apk"
}
边栏推荐
- Vi Practice -- import and export of Excel tables
- 复盘:智能座舱系列文一,他到底是什么
- Vulnerability statements of the sorted burp official website
- On the differences and advantages of project compilation tools ninja, make and cmake
- About dynamic setting text of label and button in swing interface
- 图片、视频修复并超分 - Real-ESRGAN项目使用(一) | 机器学习
- Why do some managers always force their sense of existence? (have you met it?)
- NUMA 的平衡和调度
- Map traversal
- js svg云朵和爱心动画js特效
猜你喜欢
Zdog floating rotation animation JS special effect code
About web responsive design
FigDraw 16. SCI 文章绘图之树形图(Dendrogram)
网络模拟器 eNSP、EVE-NG、GNS3、Packet Tracert
解析TCP之滑动窗口
看懂RTK定位,这一篇就够啦!
Crazy God redis notes 05
Raspberry pie 3B builds Flink cluster
JS send message box animation JS special effect
Baize_foc esp32无刷电机驱动错误问题记录贴
随机推荐
19c搭建dg最后报错ORA-01275: Operation RENAME is not allowed if standby file management is automatic.
ipset v7.10: Kernel error received: set type not supported
CTF Hetian web vulnerability shooting range
Browsersync网页服务器搭建
02_ UE4 advanced_ HP strip and blood deduction mechanism
PHP 给数组增加数据(array_unshift、array_push、array_splice、array_pad)
使用esp32 download tool给esp32烧录固件
What is the situation of foreign lead industry? Mentality collapse until giving up
【QT小记】在QThread的run()函数中使用定时器QTimer
ASCII码与16进制转换表
JS SVG cloud and love animation JS special effects
复盘:智能座舱系列文五- 它的3种交互方式之隐式交互
Creative paging style SVG animation JS special effects
不知道 MySQL 咋学?刷完牛客这 50 道题就够了(第十篇)
冒号用法 视频41 13.3. 目标检测和边界框 QA 13.4锚框
IP协议号大全
PE文件结构详解
CAD浏览模式与绘图模式、CAD如何一次性打印上百张图纸
Question 133 of Li Kou: numbers that appear only once
IX Actual combat - Reflection