Thanks Mark.
I will look more into the instrumentation framework.

Questions:
- Can I use this framework for UI operations without having access to
the app source code?
- So it means there is no way in Android for querying controls and
then performing actions on them?

Thanks
Yasser

On Jul 7, 3:49 pm, Mark Murphy <mmur...@commonsware.com> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to