Presentation on theme: "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."— Presentation transcript:
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
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
Commands 1.Issuing adb Commands 2.Querying for Emulator/Device Instances
Command 3.Directing Commands to a Specific Emulator/Device Instance 4. Installing an Application
Command 5. Copying Files to or from an Emulator/Device Instance 6. Issuing Shell Commands
Commands 6. Examining sqlite3 Databases from a Remote Shell 7. UI/Application Exerciser Monkey
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.
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
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.
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