Android cross app automation with Appium and UIAutomator

1,049 views
Skip to first unread message

Oleg Marshev

unread,
Jul 29, 2013, 8:40:58 AM7/29/13
to appium-...@googlegroups.com
Hello,

I am looking for cross app automation guide ot tips on Android.

How it possible to automate app installation from Google Play with Appium using UIAutomator on Android 4.2?

Thank you.


bootstrap online

unread,
Jul 29, 2013, 9:07:15 AM7/29/13
to Oleg Marshev, appium-...@googlegroups.com
I think so.
> --
> http://appium.io
> ---
> You received this message because you are subscribed to the Google Groups
> "Appium-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to appium-discus...@googlegroups.com.
> Visit this group at http://groups.google.com/group/appium-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Dan Cuellar

unread,
Jul 29, 2013, 10:59:17 AM7/29/13
to appium-...@googlegroups.com, Oleg Marshev
It's definitely possible as uiautomator lets you automate any app on your phone. The trick will be getting the app from google play to the phone. You could automate the google play store with appium, but I'm guessing there's a better way.

Oleg Marshev

unread,
Jul 29, 2013, 11:20:12 AM7/29/13
to Dan Cuellar, appium-...@googlegroups.com
For instance I need to automate installation of app under test from google play.
Expected result is to ensure that in launcher the icon with name specified exists after installation.

1. How can I launch appium without app name in desired_caps in order to start Google Play app?
2. And how to figure out general rule for looking app-packages and activities for Android apps like Google Play and Launcher?


On Mon, Jul 29, 2013 at 5:59 PM, Dan Cuellar <dancu...@gmail.com> wrote:
It's definitely possible as uiautomator lets you automate any app on your phone. The trick will be getting the app from google play to the phone. You could automate the google play store with appium, but I'm guessing there's a better way.



--
Regards,
Oleg Marshev

Dan Cuellar

unread,
Jul 29, 2013, 11:34:52 AM7/29/13
to appium-...@googlegroups.com, Dan Cuellar
I don't think we currently support launching android without an app, but it might be possible to add this. I'm not sure if UIAutomator actually requires you to specify an app. If we fix this, you might be able to just give it an activity to start.

I don't know much about the android implementation, so somebody else will have to tell you if this is possible

bootstrap online

unread,
Jul 29, 2013, 11:36:44 AM7/29/13
to Dan Cuellar, appium-...@googlegroups.com
Yes, it's possible if you know the activity name.

Dan Cuellar

unread,
Jul 29, 2013, 12:03:42 PM7/29/13
to appium-...@googlegroups.com, Dan Cuellar
I'll open an issue for this.

bootstrap online

unread,
Jul 29, 2013, 12:05:11 PM7/29/13
to Dan Cuellar, appium-...@googlegroups.com
Appium already supports launching on Android without an app.

On Mon, Jul 29, 2013 at 12:03 PM, Dan Cuellar <dancu...@gmail.com> wrote:
> I'll open an issue for this.
>

Dan Cuellar

unread,
Jul 29, 2013, 12:09:07 PM7/29/13
to appium-...@googlegroups.com, Dan Cuellar
My bad, I must have goofed something when I just tested it. It launched but when I connected it barfed. Probably my android setup as I haven't run appium for android on this laptop in a while

Oleg Marshev

unread,
Jul 31, 2013, 9:16:33 AM7/31/13
to Dan Cuellar, appium-...@googlegroups.com
It is possible to find packages and start activities using Dalvik Debug Monitor Server (DDMS).
For example in Android 4.2 for Play Store package is com.android.vending and activity is .AssetBrowserActivity
Using them launching Play Store in Appium pretty simple.
It works!

PS Also it possible to launch activities in android shell using am start command. So for Play Store it will be "am start -n com.android.vending/.AssetBrowserActivity"

 


On Mon, Jul 29, 2013 at 7:09 PM, Dan Cuellar <dancu...@gmail.com> wrote:
My bad, I must have goofed something when I just tested it. It launched but when I connected it barfed. Probably my android setup as I haven't run appium for android on this laptop in a while

--
http://appium.io
---
You received this message because you are subscribed to a topic in the Google Groups "Appium-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/appium-discuss/rIHf6ggZdRs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to appium-discus...@googlegroups.com.



--
Regards,
Oleg Marshev

mummana subramanya

unread,
Aug 6, 2013, 1:14:09 AM8/6/13
to appium-...@googlegroups.com, Dan Cuellar
i bet ull need this https://play.google.com/store/apps/details?id=de.migali.soft.apkinfo download that in ur phone and know ur activities and packages
Reply all
Reply to author
Forward
0 new messages