当前位置:网站首页>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
边栏推荐
- 受益互联网出海 汇量科技业绩重回高增长
- Dragon lizard community open source coolbpf, BPF program development efficiency increased 100 times
- Six years of technology iteration, challenges and exploration of Alibaba's globalization and compliance
- 介绍一种对 SAP GUI 里的收藏夹事务码管理工具增强的实现方案
- 2. Sensor size "recommended collection"
- Application of 5g industrial gateway in scientific and technological overload control; off-site joint law enforcement for over limit, overweight and overspeed
- Global and Chinese n-butanol acetic acid market development trend and prospect forecast report Ⓧ 2022 ~ 2028
- minimum spanning tree
- 20个实用的 TypeScript 单行代码汇总
- Global and Chinese styrene acrylic lotion polymer development trend and prospect scale prediction report Ⓒ 2022 ~ 2028
猜你喜欢

Animesr: learnable degradation operator and new real world animation VSR dataset

Explain IO multiplexing, select, poll, epoll in detail

Chen Yu (Aqua) - Safety - & gt; Cloud Security - & gt; Multicloud security

Computer network interview knowledge points

介绍一种对 SAP GUI 里的收藏夹事务码管理工具增强的实现方案

Interpretation of R & D effectiveness measurement framework

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

SAP 智能机器人流程自动化(iRPA)解决方案分享

MySQL六十六问,两万字+五十图详解!复习必备

04 redis source code data structure dictionary
随机推荐
7. Icons
Introduction to distributed transactions (Seata)
JVM有哪些类加载机制?
机器学习总结(一):线性回归、岭回归、Lasso回归
leetcode 322. Coin Change 零钱兑换(中等)
3.4 data query in introduction to database system - select (single table query, connection query, nested query, set query, multi table query)
Yan Rong looks at how to formulate a multi cloud strategy in the era of hybrid cloud
Benefiting from the Internet, the scientific and technological performance of overseas exchange volume has returned to high growth
Enter the top six! Boyun's sales ranking in China's cloud management software market continues to rise
2022 · 让我带你Jetpack架构组件从入门到精通 — Lifecycle
【剑指 Offer】55 - II. 平衡二叉树
Collation and review of knowledge points of Microcomputer Principle and interface technology - pure manual
Blind box NFT digital collection platform system development (build source code)
Fiori applications are shared through the enhancement of adaptation project
Investment analysis and prospect prediction report of global and Chinese p-nitrotoluene industry Ⓙ 2022 ~ 2027
盲盒NFT数字藏品平台系统开发(搭建源码)
Dragon lizard community open source coolbpf, BPF program development efficiency increased 100 times
Applet - multiple text line breaks in view
Investment analysis and prospect prediction report of global and Chinese dimethyl sulfoxide industry Ⓦ 2022 ~ 2028
研发效能度量框架解读