当前位置:网站首页>App自动化测试开元平台Appium-runner
App自动化测试开元平台Appium-runner
2022-07-01 13:29:00 【qq_492448446】
Appium Runner 自动化测试工具封装
https://github.com/crazyFeng/appium-runner
只需要你会用excel,就能够实现自动化测试,提高工作效率
安装方式
pip仓库安装
pip install appiumrunner
源码安装
python setup.py install --user
检查是否安装成功,输入appiumrun
使用步骤
编写excel
编写 yaml 配置文件
运行自动化测试
检查测试报告
yaml文件的内容如下所示:
excel_file: D:\work\course\test\platform\app_framework\data\case.xls
username: "张三"
projectname: "读书屋项目"
title: "自动化测试报告"
appium_url: "http://192.168.1.179:4723/wd/hub"
appium_run_info:
deviceName: "emulator-5554"
platformName: "Android"
platformVersion: "5.1.1"
appPackage: "com.tencent.mobileqq"
appActivity: ".activity.SplashActivity"

excel文件分为两个sheet,一个为data,另一个为login,里面是操作的步骤
data数据:
| login | {'time':10,'username':'1111','password':'2222'} | {'time':10,'username':'22222','password':'2222'} |
| regist | {'time':10,'conf1':'1111','conf':'2222'} | {'time':10,'conf1':'1111','conf':'2222'} |
login 的数据:
| 操作id | 步骤描述 | 动作 | 定位方式 | 定位值 | 多元素下标 | 校验值来源 | 属性名 | 校验方式 | 数据项 |
| case_setp1 | 点击弹窗同意按钮 | click | find_element_by_id | com.android.packageinstaller:id/permission_allow_button | |||||
| case_setp2 | 点击弹窗同意按钮 | click | find_element_by_id | com.android.packageinstaller:id/permission_allow_button | |||||
| case_setp3 | 等待页面加载 | wait | time | ||||||
| case_setp4 | 点击弹窗同意按钮 | click | find_element_by_xpath | //android.widget.TextView[@content-desc="同意"] | |||||
| case_setp5 | 点击登录按钮 | click | find_element_by_id | com.tencent.mobileqq:id/btn_login | |||||
| case_setp6 | 点击用户名输入 | send_keys | find_element_by_xpath | //android.widget.EditText[@content-desc="请输入QQ号码或手机或邮箱"] | username | ||||
| case_setp7 | 点击密码输入 | send_keys | find_element_by_id | com.tencent.mobileqq:id/password | password | ||||
| case_setp8 | 登录成功 | click | find_element_by_id | com.tencent.mobileqq:id/login | |||||
| case_setp9 | 关闭应用 | end |
如何启动自动化:
找打config.yaml文件所在路径,然后执行 appiumrun --config=config.yaml
边栏推荐
- Flutter SQLite使用
- Global and Chinese silicone defoamer production and marketing demand and investment forecast analysis report Ⓨ 2022 ~ 2027
- ArrayList capacity expansion mechanism and thread safety
- 一文读懂TDengine的窗口查询功能
- 3.4 data query in introduction to database system - select (single table query, connection query, nested query, set query, multi table query)
- Analysis report on the development prospect and investment strategy of the global and Chinese laser chip industry Ⓑ 2022 ~ 2027
- Enter the top six! Boyun's sales ranking in China's cloud management software market continues to rise
- Nexus builds NPM dependent private database
- Some summary of pyqt5 learning (overview of the general meaning of some signals and methods)
- 当你真的学会DataBinding后,你会发现“这玩意真香”!
猜你喜欢

面试题目总结(1) https中间人攻击,ConcurrentHashMap的原理 ,serialVersionUID常量,redis单线程,

刘对(火线安全)-多云环境的风险发现

清华章毓晋老师新书:2D视觉系统和图像技术(文末送5本)

当你真的学会DataBinding后,你会发现“这玩意真香”!

MySQL 66 questions, 20000 words + 50 pictures in detail! Necessary for review

Enter the top six! Boyun's sales ranking in China's cloud management software market continues to rise

Judea pearl, Turing prize winner: 19 causal inference papers worth reading recently

Meta enlarge again! VR new model posted on CVPR oral: read and understand voice like a human

详细讲解面试的 IO多路复用,select,poll,epoll

Liu Dui (fire line safety) - risk discovery in cloudy environment
随机推荐
JVM有哪些类加载机制?
1.8新特性-List
2.15 summary
Google Earth Engine(GEE)——全球人类居住区网格数据 1975-1990-2000-2014 (P2016)
B站被骂上了热搜。。
Etcd summary mechanism and usage scenarios
In the next stage of digital transformation, digital twin manufacturer Youyi technology announced that it had completed a financing of more than 300 million yuan
Report on the "14th five year plan" and scale prospect prediction of China's laser processing equipment manufacturing industry Ⓢ 2022 ~ 2028
How much money do novices prepare to play futures? Is agricultural products OK?
2. Sensor size "recommended collection"
La taille de la pile spécifiée est petite, spécifiée à la sortie 328k
Report on the 14th five year plan and future development trend of China's integrated circuit packaging industry Ⓓ 2022 ~ 2028
Three questions about scientific entrepreneurship: timing, pain points and important decisions
[安网杯 2021] REV WP
【机器学习】VAE变分自编码器学习笔记
Understand the window query function of tdengine in one article
Reasons for MySQL reporting 1040too many connections and Solutions
Grafana reports an error: error= "failed to send notification to email addresses: [email protected] : 535 Error:
SAP 智能机器人流程自动化(iRPA)解决方案分享
北斗通信模块 北斗gps模块 北斗通信终端DTU