There's a TouchUtils class to simulate taps, drags, etc.

On Tue, Jul 7, 2009 at 3:49 PM, Mark Murphy<[email protected]> wrote:
>
> Yasser wrote:
>> I am running my app on the android emulator.
>> I am looking for a tool through which I can programatically perform
>> (simulate) user actions on the app's GUI. A tool like WinRunner or QTE
>> (may be not that advanced) which can interact with the GUI. Actually I
>> need this to develop test automation for my app.
>
> The instrumentation framework, which you dismissed earlier, is the answer.
>
>>>> There is an "Android Instrumentation Framework" (part of SDK) but
>>>> that's more for API or Unit testing not for functional testing.
>
> That is incorrect. Use android.test.ActivityInstrumentationTestCase2 and
> sendKeys() to simulate user input. Admittedly, this only works for
> keyboard/trackball events (not touch events, AFAIK), but it is better
> than nothing.
>
> More importantly, short of improving the instrumentation framework, you
> have no other real option for black-box GUI testing, due to Android's
> security measures.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, $35/Year
>
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to