Beruflich Dokumente
Kultur Dokumente
Revision History
Name Date Reason For Changes Version
Nghi Bui, Thuc 26-Aug-13 Add the integration command line tool that 1.0
Nguyen supports users to resign/install/uninstall
android applications.
Khai Tran – 1421 9-Sep-13 Review 1.1
Update structure
Add “start” command
Nghi Bui 20-Sep-13 Update “start” command rules 1.2
Nghi Bui 27-Sep-13 Update priority of error message 1.2
Nghi Bui 01-Oct-13 Update help command 1.3
Nghi Bui 03-Oct-13 Update swap argument in a command 1.4
Remove start program action
Nghi Bui 18-Oct-13 Add –f option to install command 1.5
Nghi Bui 22-Oct-13 Support force install on Android – 1.6
Instrumentation Applications
Nghi Bui 23-Oct-13 Update Swap All Argument (Included Child 1.7
Option)
1. Introduction
This document describes rules of Android Build Tool Command Line and help users to use it.
2. User Stories
As a user, I want AndroidBuildTool.exe can run in command line mode to support user install/uninstall/start android
applications.
3. Functional specification
The tool will output result (include: error message handling) to the command line screen. But if users want to store
this result to a file and don’t display on the command line screen, users can use [> “File Name”] option.
In case users want to run this command from action “start program”, they can use:
Supported commands:
If users have more than one error, the tool will check the first error with error priority as below:
Limitation:
Rule of “install”:
When users use “Android – Instrumentation Applications” to install android application, but this application
is existed or has different signature with LogiGear signature. TA will automatically show a message box as
below:
If there is more than one error, the tool only displays the first error message. After that, the tool will be terminated.
Case 1:
- Option 2:
Case 2:
-k: keep the data and cache directories after removing the package
-c: delete all data associated with the package that is uninstalled by users.
ast.exe <uninstall <”Package Name”>> [-s ”Unique ID of Target Device”] [Child Option]
Rule of “uninstall”:
If there is more than one error, the tool only displays the first error message. After that, the tool will be terminated.
Sample:
Case 1:
Case 2:
Users can only start an Android application from one Android device per execution.
Users can swap all arguments as below:
o start <”Package Name”>
o -s <”Unique ID of Target Device”>
The rules of “start” option will same with the rules of “Start selected AUT on device” on “Android – Instrumentation
Application” dialog.Error Message Handling:
If there is more than one error, the tool only displays the first error message. After that, the tool will be terminated.
Show help when users use help command or users enter wrong Android tool command line syntax.
ast install <Path-To-Apk> [-s <Unique ID of Target Device>] - Install an Android application
ast uninstall <Package Name> [-s <Unique ID of Target Device>] [-k|-c] - Uninstall an Android application from an
Android Device
ast start <Package Name> [-s <Unique ID of Target Device>] - Start an Android application