Download presentation
Presentation is loading. Please wait.
Published bySantos Heath Modified over 10 years ago
2
1.A tool helps us mange the state of an emulator instance or Android-powered device 2.It is client-sever program that include three comopnents: 1). A client,which runs on your development machine. 2). A sever,which runs as a background process on you development machine 3).A daemon,which runs as a backgroud process on each emulator or device instance
3
ClinetServer 1. Clinet first checks whether there is an adb server process already running If there is not,it start the server process.(all adb clinet use port 5037 to communicate with the adb sever) 2. The server then sets up connetion to all running emulator/device instance. An even-numbered port for console connections and an odd-numbered port for adb connections
4
Commands 1.Issuing adb Commands 2.Querying for Emulator/Device Instances
5
Command 3.Directing Commands to a Specific Emulator/Device Instance 4. Installing an Application
6
Command 5. Copying Files to or from an Emulator/Device Instance 6. Issuing Shell Commands
7
Commands 6. Examining sqlite3 Databases from a Remote Shell 7. UI/Application Exerciser Monkey
8
Commands 6. Using logcat Commands
9
UI/Application Exerciser Monkey 1.The Monkey is a program that runs on your emulator or device and generates pseudo- random streams of user events such as clicks, touches, or gestures, as well as a number of system-level events. 2. You can use the Monkey to stress-test applications that you are developing,in a random yet repeatable manner.
10
Four options Basic configuration options, such as setting the number of events to attempt. Operational constraints, such as restricting the test to a single package. Event types and frequencies. Debugging options
11
Three conditions If you have constrained the Monkey to run in one or more specific packages, it watches for attempts to navigate to any other packages, and blocks them. If your application crashes or receives any sort of unhandled exception, the Monkey will stop and report the error. If your application generates an application not responding error, the Monkey will stop and report the error.
12
Basic Use of Monkey Launch the Monkey using a command line on your development machine or from a script The basic syntax is a more typical command line
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.