I'm trying to automate a test on android that requires a hold event
(i.e. touch a single point on screen and wait, then release).
However, the Logcat reports:

[date] [time] 643  643 D MonkeyStub:  translateCommand: tap 25 25

instead of the expected

[date] [time] 643  643 D MonkeyStub:  translateCommand: touch down 25
25

The Jython code i'm testing is
<code>
import sys
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice,
MonkeyImage

device = MonkeyRunner.waitForConnection( 5 )
if not device:
    sys.exit()

device.touch( 25, 25, 'down' )
</code>

I've tried using 'down', 'Down', 'DOWN', 'dOWN', but MonkeyRunner only
responds with Tap (DOWN_AND_UP) events, which is default behavior if
it cannot interpret my TouchPressType enumerator.

Test platform consists of:
  Droid X2 with Android 2.2.2, Kernel 2.6.32.9
  ADB v1.0.26

At the moment, I'm using drag over the same location to simulate a
Touch Down event.  Still, this is fustrating trying to use a sparsely
documented API that appears to have broken functionality.  Any help is
appreciated.

Regards,

Justin C.

-- 
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