当前位置:网站首页>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
边栏推荐
- 学会使用LiveData和ViewModel,我相信会让你在写业务时变得轻松
- 一文读懂TDengine的窗口查询功能
- 2022上半年英特尔有哪些“硬核创新”?看这张图就知道了!
- 1.8新特性-List
- Arthas use
- 龙蜥社区开源 coolbpf,BPF 程序开发效率提升百倍
- GET请求如何传递数组参数
- 开源实习经验分享:openEuler软件包加固测试
- [Jianzhi offer] 55 - ii balanced binary tree
- Self cultivation of open source programmers who contributed tens of millions of lines of code to shardingsphere and later became CEO
猜你喜欢

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

玩转gRPC—不同编程语言间通信

【Flask】Flask启程与实现一个基于Flask的最小应用程序

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

The best landing practice of cave state in an Internet ⽹⾦ financial technology enterprise

Station B was scolded on the hot search..

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

Cs5268 advantages replace ag9321mcq typec multi in one docking station scheme

04 redis source code data structure dictionary

IO的几种模型 阻塞,非阻塞,io多路复用,信号驱动和异步io
随机推荐
Global and Chinese polypropylene industry prospect analysis and market demand forecast report Ⓝ 2022 ~ 2027
[Jianzhi offer] 55 - ii balanced binary tree
二传感器尺寸「建议收藏」
Summary of interview questions (1) HTTPS man in the middle attack, the principle of concurrenthashmap, serialVersionUID constant, redis single thread,
Etcd summary mechanism and usage scenarios
6年技术迭代,阿里全球化出海&合规的挑战和探索
Learning to use livedata and ViewModel will make it easier for you to write business
8款最佳实践,保护你的 IaC 安全!
Google Earth engine (GEE) - Global Human Settlements grid data 1975-1990-2000-2014 (p2016)
SAP 智能机器人流程自动化(iRPA)解决方案分享
[Jianzhi offer] 54 The k-th node of binary search tree
ArrayList扩容机制以及线程安全性
Fiori applications are shared through the enhancement of adaptation project
20个实用的 TypeScript 单行代码汇总
[241. Design priority for operation expression]
Liu Dui (fire line safety) - risk discovery in cloudy environment
Self cultivation of open source programmers who contributed tens of millions of lines of code to shardingsphere and later became CEO
Several models of IO blocking, non blocking, IO multiplexing, signal driven and asynchronous IO
Terminal identification technology and management technology
5. Use of ly tab plug-in of header component