Android test Boost Efficiency batch script

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.