Questions tagged [android-monkey]

Questions related to use of monkey, a command-line tool in Android that allows developers to generate pseudo-random streams of user events such as clicks, touches, or gestures, as well as a number of system-level events on emulator and devices.

The Monkey is a command-line tool that can be run on any emulator instance or on a device. It sends a pseudo-random stream of user events into the system, which acts as a stress test on the application software being developed.

The Monkey provides options that can be grouped into four primary categories:

  1. Basic configuration options, such as setting the number of events to attempt.
  2. Operational constraints, such as restricting the test to a single package.
  3. Event types and frequencies.
  4. Debugging options.

Source: http://developer.android.com/tools/help/monkey.html

32 questions
1
vote
0 answers

How to check if there was a crash with monkeyrunner

I am going to implement smart monkey test with monkeyrunner. Is there any way I can get crash information just like what adb monkey's doing? Even though monkeyrunner clicked crash-generating button, it doesn't generate crash information to STDOUT…
John
  • 1,139
  • 3
  • 16
  • 33
1
vote
0 answers

Excluded the package from monkey testing is still crashing

I have added package in blacklist file and moved to certain location, but i still see same package crash even after adding in black list file (Crash is not consistent 1 or 2 times if i run for 10 times) Any idea what is root cause for black listed…
Madhu
  • 95
  • 1
  • 1
  • 6
1
vote
1 answer

Monkey command to execute all the packages at a time

I am using following command to execute specific package: adb shell monkey -v -p com.google.android.apps.maps 500 adb shell monkey -p com.google.android.voicesearch 10 Q-1: But I want to execute all the packages in batch mode,can anyone please…
Elkay
  • 11
  • 1
  • 2
1
vote
1 answer

Android UI tester monkey - no activities found to run

I am trying to get the android ui monkey running for the first time and am having some problems. I have run adb shell monkey -v 100 which works fine, but obviously only on the system UI not on my own application. I then try adb shell monkey -p…
rbennett485
  • 1,907
  • 15
  • 24
1
vote
1 answer

How is it possible to run monkey from android app

I try to run 'adb shell monkey' from my app for another app using the code below: String[] command = null; command = new String[] { "monkey", "-p", "com.example.appname", "-v", "500" }; if(command != null){ …
Yuliya Tarasenko
  • 437
  • 2
  • 19
1
vote
0 answers

Android monkey causes Application Not Responding in native library

I get this when running monkey -v -p package.name --throttle 1 --pct-syskeys 0 100000. I suppose this is not my own code? It appears to be Android's drawing code. Jellybean 4.1.1. DALVIK THREADS: (mutexes: tll=0 tsl=0 tscl=0 ghl=0) "main" prio=5…
mparaz
  • 2,049
  • 3
  • 28
  • 47
1
vote
2 answers

Easy way to find x y coordinates on MonkeyRunner

I am using MonkeyRunner to test my very broad application and running many different scripts on my devices. However it is taking a long time to figure out where the x/y coordinates are on every touch of the screen. I tried using this nice plugin…
user182192
  • 729
  • 3
  • 14
  • 26
0
votes
1 answer

How to detect when android monkey test catches ANR or Error

I made a Jenkins job to continually test Android Monkey. My purpose is to find hidden errors of exceptions. I ran it 420 times and cannot find any error. Is there a way I can find errors or exceptions automatically and save log file?
John
  • 1,139
  • 3
  • 16
  • 33
0
votes
1 answer

Testing non-activity android applications

Monkey is used to test applications with activities. Is there a way to make automated tests like monkey for non-activity applications?
Ricardo Cristian Ramirez
  • 1,194
  • 3
  • 20
  • 42
0
votes
1 answer

MonkeyRunner "sleep" while a progress finish

I am about to automaticaly scan my device for malware files. I use MonkeyRunner to connect, start the Antimalware Software, and start the scan. Here some of the code I…
0
votes
2 answers

finish() not working while using android monkey tool

I have an activity that overrides onBackPressed(), and within this function, I explicitly call finish(), since I need to do some clean up before the app exits. When I do run the app normally, and click on the BACK key, the app exits normally. When I…
Rajath
  • 11,787
  • 7
  • 48
  • 62
0
votes
1 answer

getDrawingCache return null when run monkey

I have the follow code to get the screenshot View screen = getWindow().getDecorView(); screen.setDrawingCacheEnabled(true); screen.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH); screen.buildDrawingCache(); Bitmap…
cheng yang
  • 1,692
  • 3
  • 12
  • 21
0
votes
0 answers

Android Monkey not writing to scriptlog.txt (permission denied)

Just started trying to use the android monkey tool, and it's working fine, except that for during the run it prints thousands of lines of the following: java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt (Permission Denied) Why would it fail…
Tim
  • 35,413
  • 11
  • 95
  • 121
0
votes
1 answer

Any way to skip time changing by android monkey tool

I am performing UI stress testing for app and as well as some other apps by using monkey tool.. But monkey is changing the time and which effects the logs timestamp.. This is causing annoying while debugging the issues(system/events logs).. Is…
msk
  • 135
  • 2
  • 13
0
votes
2 answers

Auto screen orientation changes with respect to time intervals

I wanted to rotate the screen orientations i.e from landscape -> patriot and vice verse for every 500 ms(This is on real device(not on emulator)). Is there any shell command where we can rotate the current screen orientation? This is not…
msk
  • 135
  • 2
  • 13