Objective:
In the app testing process, often need to use some of the commands, such as the ADB, each time the command, although can deepen the impression, but personally think that is tedious and waste of time. This article posted some of the batches I used, and a little bit of tricks.
Directory
1. [View apk file information. bat]
2, [automatic installation Apk.bat]
1. [View apk file information. bat]
|
@ECHO OFF
ECHO [view APK package Info]
ECHO-------------------------------
ECHO aapt Dump badging%~nx1
AAPT dump badging%1 >%~dp0%~n1.txt
ECHO [Pause for 3 seconds auto-close ...]
Ping-n 3 127.0.0.1>nul
@ECHO on |
How to use: Drag the apk directly onto the bat file and save the information in a TXT file in the directory where the Bat is located
2, [automatic installation Apk.bat]
|
@ECHO OFF
ECHO [Install APK]
ECHO-------------------------------
ECHO [wait to insert phone ...]
ADB wait-for-device
ECHO [Install]%~nx1
ADB install-r%1
ECHO [Pause for 5 seconds auto-close ...]
Ping-n 5 127.0.0.1>nul
@ECHO on |
How to use: Drag the apk directly onto the bat file
Android test Boost Efficiency batch script