I *finally* got monkey testing to work from a script.

my test.txt file looks like this --

---- cut here ----
start data >>
 
DispatchPointer(5109520,5109520,0,230.75429,458.1814,0.20784314,0.06666667,0,0.0,0.0,65539,0)
  DispatchKey(5113146,5113146,0,20,0,0,0,0)
---- cut here ----

and my

monkey command looks like this:

monkey -v -v -v -f /sdcard/test.txt 1

----

When I did that, it worked!

Now those commands DispatchPointer and DispatchKey are pretty gnarly
in terms of the number of arguments.

I see on
http://android.git.kernel.org/?p=platform/development.git;a=blob;f=cmds/monkey/example_script.txt;h=5c1c61de2b5bd5fb109d9f2807d12da4ee36e825;hb=HEAD
there are simple commands like

# Touch the android
touch down 160 200
touch up 160 200
sleep 1000

Which seem a lot easier and friendlier to me -- except that they don't
work (at least on my Nexus One).

If i have to use the more complicated commands (the ones with a
zillion parameters), is there a way to automatically generate these
based on actual user events?  I would love it if there was some kind
of record function or something that could translate actual human UI
events into events that could be fed into the script.

Any help here?

tia.

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

Reply via email to