Android Debug Bridge(. adb. ). A tool helps us mange the state of an emulator instance or Android-powered device. It is client-sever program that include three . comopnents. :. 1). A client ,which runs on your development machine.. ID: 277654
DownloadNote - The PPT/PDF document "Adb and Monkey" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Adb and MonkeySlide2
Android Debug Bridge(adb)
A tool helps us mange the state of an emulator instance or Android-powered device
It is client-sever program that include three
1). A client ,which runs on your development machine.
runs as a background process on you development machine
3).A daemon ,which runs as a
process on each emulator or device instanceSlide3
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)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 connectionsSlide4
1.Issuing adb Commands
2.Querying for Emulator/Device InstancesSlide5
3.Directing Commands to a Specific Emulator/Device Instance
Installing an ApplicationSlide6
5. Copying Files to or from an Emulator/Device Instance
Issuing Shell CommandsSlide7
6. Examining sqlite3 Databases from a Remote Shell
UI/Application Exerciser MonkeySlide8
6. Using logcat CommandsSlide9
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
a random yet repeatable manner.Slide10
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.
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.Slide12
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 lineSlide13Slide14Slide15Slide16Slide17