ZhongAnTech / Za Farmer
Licence: mit
基于uiautomator2.0 的自动化测试工具
Stars: ✭ 60
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Za Farmer
Dvm
Fast and simple Deno runtime version manager written in OCaml
Stars: ✭ 58 (-3.33%)
Mutual labels: cli
Cheatsheet
Cool command-line cheatsheet. Open format, grep-able, where you need them most.
Stars: ✭ 58 (-3.33%)
Mutual labels: cli
Node Google Play Cli
command line tools using the node-google-play library
Stars: ✭ 58 (-3.33%)
Mutual labels: cli
Cabal Edit
A utility for managing Hackage dependencies and manipulating Cabal files from the command line.
Stars: ✭ 60 (+0%)
Mutual labels: cli
Wsdirector
All the world's a server, and all the men and women merely clients
Stars: ✭ 58 (-3.33%)
Mutual labels: cli
Awless Templates
Repository of examples for awless templates (see https://github.com/wallix/awless)
Stars: ✭ 59 (-1.67%)
Mutual labels: cli
Taskbook
Tasks, boards & notes for the command-line habitat
Stars: ✭ 8,326 (+13776.67%)
Mutual labels: cli
Http Prompt
An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
Stars: ✭ 8,329 (+13781.67%)
Mutual labels: cli
Rbiam
A unified IAM+Kubernetes RBAC access control exploration tool
Stars: ✭ 59 (-1.67%)
Mutual labels: cli
Changed Log
Returns all commit messages between 2 versions of an NPM module
Stars: ✭ 58 (-3.33%)
Mutual labels: cli
Clojurl
An example Clojure CLI HTTP/S client using GraalVM native image
Stars: ✭ 59 (-1.67%)
Mutual labels: cli
za-Farmer
za-Farmer 是一个基于Uiautomator2.0 的命令行自动化工具,你可以通过命令行驱动Uiautomator进行Android自动化测试。
我们封装了Android大部分常用操作,你可以很容易的使用它实现你的Android自动化需求。
它可以帮你自动处理权限弹窗,并配套有完整的执行日志和过程截图,帮助你还原执行过程中的情况。
内容列表
特性
1、步骤执行自动截图
执行过程中每个步骤都会截图记录操作的元素或标注执行轨迹
2、权限弹框自动处理
构建
git clone https://github.com/ZhonganTechQA/za-Farmer.git
cd ./za-Farmer
./gradlew clean assembleAndroidTest assembleDebug
成功后生成两个apk
./app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
./app/build/outputs/apk/debug/app-debug.apk
安装
- 安卓5.0以下安装方式:
adb install ./app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
adb install ./app/build/outputs/apk/debug/app-debug.apk
- 安卓5.0以上安装方式:
adb install -g ./app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
adb install -g ./app/build/outputs/apk/debug/app-debug.apk
注意:-g 参数为授予所有运行权限,安卓5.0以下不支持
简单示例
$ adb shell am instrument -w -e class 'com.smart.farmer.ExampleInstrumentedTest#step' \
-e step-action click \
-e step-elementText 设置 \
com.smart.farmer.test/android.support.test.runner.AndroidJUnitRunner
执行完成后导出过程截图
$ adb pull /storage/emulated/0/Android/data/com.smart.farmer/cache/ ./Desktop/
$ adb shell am instrument -w -e class 'com.smart.farmer.ExampleInstrumentedTest#step' \
-e step-action click
-e step-elementText 随便看看
-e step-autoPermit true com.smart.farmer.test/android.support.test.runner.AndroidJUnitRunner
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].