[android-developers] Android monkey script executes slow on Lollipop

2016-01-25 Thread Eric W.H. Huang


down votefavorite 


I used adb shell and command "monkey -v -f click.m 1" to run following 
monkey script.

type = user
count= 1
speed= 1
start data >>DispatchPointer(1, 1,0, 720, 390, 0, 0, 0,0,0,0, 
0)UserWait(10)DispatchPointer(1, 1, 1, 720, 370, 0, 0, 0,0,0,0, 0)

If run on Android version before Lollipop, everything is fine. The terminal 
return

:Monkey: seed=1454578478126 count=1:IncludeCategory: 
android.intent.category.LAUNCHER:IncludeCategory: 
android.intent.category.MONKEYReplaying 1 events with speed 1.0:Sending Touch 
(ACTION_DOWN): 0:(90.0,45.0):Sending Touch (ACTION_UP): 0:(90.0,45.0)Events 
injected: 3:Sending rotation degree=0, persist=false:Dropped: keys=0 pointers=0 
trackballs=0 flips=0 rotations=0## Network stats: elapsed time=90ms (0ms 
mobile, 0ms wifi, 90ms not connected)// Monkey finished

But for Lollipop, the result is

:Monkey: seed=1454026680534 count=1:IncludeCategory: 
android.intent.category.LAUNCHER:IncludeCategory: 
android.intent.category.MONKEYReplaying 1 events with speed 1.0:Sending Touch 
(ACTION_DOWN): 0:(720.0,390.0):Sending Touch (ACTION_UP): 0:(720.0,370.0)Events 
injected: 3:Sending rotation degree=0, persist=false:Dropped: keys=0 pointers=2 
trackballs=0 flips=0 rotations=0## Network stats: elapsed time=6200ms (0ms 
mobile, 0ms wifi, 6200ms not connected)// Monkey finished

The elapsed time is 90ms vs. 6200ms. It's abnormal for Lollipop. What's 
should I do?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/fca5d201-65cb-4f45-bcbf-ad271b8b0547%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] [Android Monkey] How to pass a continual 25 hrs' Monkey testing

2012-03-09 Thread wang summer
Hi,

I am trying Monkey testing on android devices, and here met several
questions during my running Monkey testing on my tablet.
1. How to deal with the issue that the device will be shutted down by
device itself during automated Monkey testing?
2. Is there any requirement from Google to say that the android
devices have to pass some hours' Monkey testing, like 25 hours?
3. If we indeed have to pass a continual 25 hours' Monkey testing,
which parameters should I use, for example, do we need to use
throttle, ignore crash, and so on.

Thanks in advance.

BR,
Summer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android monkey feature ? : adb shell monkey -p com.asus.davinci.medianote -v 500 --hprof

2011-12-06 Thread MobileScorpio
Dear Android Developers,

About Android Monkey Feature: 
http://developer.android.com/guide/developing/tools/monkey.html
...
Command Options Reference
The table below lists all options you can include on the Monkey
command line.
CategoryOption  Description
...
Debugging --hprof  If set, this option will generate profiling
reports immediately before and after the Monkey event sequence. This
will generate large
   (~5Mb) files in data/misc, so use with
care. See Traceview for more information on trace files.

When I type adb shell monkey -p com.asus.davinci.medianote -v 500 --
hprof in Android 3.2 (Honeycomb), there is no any file in  data/misc.
But I configure the system root authority  and data/misc is world-
writable by default.

Is this feature monkey --hprof disabled ? If not,  what possible
configuration problems ocurr ?

BR,
Benjamin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android monkey feature ? : adb shell monkey -p com.asus.davinci.medianote -v 500 --hprof

2011-12-06 Thread MobileScorpio
Dear Android Developers,

About Android Monkey Feature: 
http://developer.android.com/guide/developing/tools/monkey.html
...
Command Options Reference
The table below lists all options you can include on the Monkey
command line.
CategoryOption  Description
...
Debugging --hprof  If set, this option will generate profiling
reports immediately before and after the Monkey event sequence. This
will generate large
   (~5Mb) files in data/misc, so use with
care. See Traceview for more information on trace files.

When I type adb shell monkey -p com.asus.davinci.medianote -v 500 --
hprof in Android 3.2 (Honeycomb), there is no any new file in  data/
misc.
But I configure the system root authority  and data/misc is world-
writable by default.

Is this feature monkey --hprof disabled ? If not,  what possible
configuration problems ocurr ?

BR,
Benjamin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Android Monkey.

2011-11-23 Thread Mark Murphy
On Tue, Nov 22, 2011 at 3:51 PM, naveen raj s.naveen...@gmail.com wrote:
 a) How do I know, what are the events generated by android Monkey ?

Add the -v switch to get a dump of the events.

 b) Can I define the events for android monkey ?

AFAIK, no. You can describe what percentage of events to allocate to
different categories. If you want scripted testing, try monkeyrunner.

 c)  Does this android monkey tool works for all android devices (for
 ex: Android tablets) ?

All is probably more than anyone can say, as there are some strange
devices out there. Most is probably fairly accurate, though.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android Monkey.

2011-11-22 Thread naveen raj
Hi ,

I have few questions regarding android monkey.

a) How do I know, what are the events generated by android Monkey ?

b) Can I define the events for android monkey ?

c)  Does this android monkey tool works for all android devices (for
ex: Android tablets) ?


Regards
Naveen

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] android monkey runner

2011-07-12 Thread yanamala siddaiah
pls tell me step by step ,  how to use this. how to write scripts for
monkey runner ..


thanks
siddaiah

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android monkey tool script

2010-03-24 Thread zafar
Android Monkey tool can use user supplied script to run,
but very few information are present in this regarding to writing
android monkey script.

one guy only copied the stuff from source code and apart from that no
information is present.

Can anyone tell abount the sysntax of android monkey script to launch
browser using the command from script and to browse particular
website.

Any suggestion will be appreciated.

MD ZAFAR ZIYA

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Android Monkey Testing.

2010-01-07 Thread satish
Hi All,

I am executing Monkey testing on a Android device.
The command i am using is adb shell monkey -p com.android.calculator2
-v 5000  monkey-calculator.txt

When we execute this command i suppose it should send 5000 events
to the device.In my case after sending event #150900 it stopped and i
see a message:


:Dropped: keys=0 pointers=0 trackballs=0 flips=0

What does this message tell me?

I would appreciate any help.

Thanks,
Satish.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en