
python+Uiautomator2手机自动化测试学习笔记
文章平均质量分 72
Ricky_Frog
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python+uiautomator2手机UI自动化测试实战 --1. 环境搭建
一.简介uiautomator2是一个python库,用于Android的UI自动化测试,其底层基于Google uiautomator,Google提供的uiautomator库可以获取屏幕上任意一个APP的任意一个控件属性,并对其进行任意操作二.安装1. 安装uiautomator2pip install --upgrade --pre uiautomator22.如果你...原创 2018-08-04 20:55:31 · 17087 阅读 · 0 评论 -
Python+uiautomator2手机UI自动化测试实战 -- 2. 用法介绍
设备连接方法,有两种1. 通过WiFi,假设设备IP 192.168.5.4和您的PC在同一网络中import uiautomator2 as u2d = u2.connect('192.168.5.4') # alias for u2.connect_wifi('192.168.5.4')print(d.info)2. 通过USB,假设设备序列是123456789F(...原创 2018-08-05 10:13:18 · 46594 阅读 · 5 评论 -
Python+uiautomator2手机UI自动化测试实战 -- 3. 实战演习demo
在工作中,最重要的就是工作的效率,在做测试的时候,有的case需要每个版本的执行,时间长了测试人员肯定很烦,并且效率也不高,怎么解决呢?我们测试开发小组就运用Uiautomator2把繁琐的测试步骤自动化,做好之后,每次版本之前的测试,都可以运行下程序,看看手机玩会,等着出报告就好了,真是美滋滋。那就让我们开始吧~ 同样能够实现这个功能的还有appium,这个以后再写!一. 测试用例如...原创 2018-08-06 22:31:47 · 6985 阅读 · 0 评论 -
Java+Uiautomator自动化测试 -- 10.UiCollection学习
UiAutomator1.0主要的API汇总官网介绍:The UI Automator APIs allow you to write robust tests without needing to know about the implementation details of the app that you are targeting. You can use these API...原创 2019-04-27 21:58:38 · 2914 阅读 · 1 评论