当前位置:网站首页>App automation testing Kaiyuan platform appium runner
App automation testing Kaiyuan platform appium runner
2022-07-01 13:46:00 【qq_ four hundred and ninety-two million four hundred and forty-】
Appium Runner Automated test tool encapsulation
https://github.com/crazyFeng/appium-runner
Only if you can use it excel, Can achieve automated testing , Improve work efficiency
Installation mode
pip Warehouse installation
pip install appiumrunner
Source code installation
python setup.py install --user
Check if the installation is successful , Input appiumrun
Use steps
To write excel
To write yaml The configuration file
Run automated tests
Inspection and test report
yaml The contents of the document are as follows :
excel_file: D:\work\course\test\platform\app_framework\data\case.xls
username: " Zhang San "
projectname: " Reading house project "
title: " Automated test reports "
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 The document is divided into two sheet, One for data, For another login, Inside is the operation steps
data 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 The data of :
operation id | Step description | action | Positioning mode | Positioning value | Multi element subscript | Check value source | Property name | Verification method | Data item |
case_setp1 | Click the pop-up consent button | click | find_element_by_id | com.android.packageinstaller:id/permission_allow_button | |||||
case_setp2 | Click the pop-up consent button | click | find_element_by_id | com.android.packageinstaller:id/permission_allow_button | |||||
case_setp3 | Wait for the page to load | wait | time | ||||||
case_setp4 | Click the pop-up consent button | click | find_element_by_xpath | //android.widget.TextView[@content-desc=" agree! "] | |||||
case_setp5 | Click the login button | click | find_element_by_id | com.tencent.mobileqq:id/btn_login | |||||
case_setp6 | Click the user name to enter | send_keys | find_element_by_xpath | //android.widget.EditText[@content-desc=" Please enter QQ Number or mobile phone or email "] | username | ||||
case_setp7 | Click password input | send_keys | find_element_by_id | com.tencent.mobileqq:id/password | password | ||||
case_setp8 | Login successful | click | find_element_by_id | com.tencent.mobileqq:id/login | |||||
case_setp9 | Close app | end |
How to start Automation :
Search for config.yaml File path , And then execute appiumrun --config=config.yaml
边栏推荐
- 孔松(信通院)-数字化时代云安全能力建设及趋势
- 受益互联网出海 汇量科技业绩重回高增长
- Fiori 应用通过 Adaptation Project 的增强方式分享
- Liu Dui (fire line safety) - risk discovery in cloudy environment
- 7. Icons
- Listen in the network
- arthas使用
- uni-app实现广告滚动条
- Build a vc2010 development environment and create a tutorial of "realizing Tetris game in C language"
- 9. Use of better scroll and ref
猜你喜欢
Anti fraud, refusing to gamble, safe payment | there are many online investment scams, so it's impossible to make money like this
Six years of technology iteration, challenges and exploration of Alibaba's globalization and compliance
6年技术迭代,阿里全球化出海&合规的挑战和探索
04 redis source code data structure dictionary
陈宇(Aqua)-安全->云安全->多云安全
刘对(火线安全)-多云环境的风险发现
Enter the top six! Boyun's sales ranking in China's cloud management software market continues to rise
QT社团管理系统
The stack size specified is too small, specify at least 328k
分布式事务简介(seata)
随机推荐
Computer network interview knowledge points
SAP 智能机器人流程自动化(iRPA)解决方案分享
Chen Yu (Aqua) - Safety - & gt; Cloud Security - & gt; Multicloud security
盲盒NFT数字藏品平台系统开发(搭建源码)
Analysis report on the development prospect and investment strategic planning of China's wafer manufacturing Ⓔ 2022 ~ 2028
Analysis report on the development trend and prospect scale of silicon intermediary industry in the world and China Ⓩ 2022 ~ 2027
自定义注解实现验证信息的功能
How much money do novices prepare to play futures? Is agricultural products OK?
Report on the "14th five year plan" and scale prospect prediction of China's laser processing equipment manufacturing industry Ⓢ 2022 ~ 2028
Detailed explanation of leetcode reconstruction binary tree [easy to understand]
Listen in the network
[sword finger offer] 55 - I. depth of binary tree
运行游戏时出现0xc000007b错误的解决方法[通俗易懂]
AnimeSR:可学习的降质算子与新的真实世界动漫VSR数据集
Arthas use
String input function
【241. 为运算表达式设计优先级】
Google Earth engine (GEE) - Global Human Settlements grid data 1975-1990-2000-2014 (p2016)
Etcd 概要 机制 和使用场景
孔松(信通院)-数字化时代云安全能力建设及趋势