New to Appium, try to work Appium on Android

745 views
Skip to first unread message

Eric Z

unread,
Apr 7, 2013, 5:47:28 AM4/7/13
to appium-...@googlegroups.com
Hi chaps, thanks for the awesome Appium to make the cross platform automation truly possible and feasible! 

I am new to the tool, and trying to work the Appium on Android. I have Node.js set up on a Win 7 machine with Appium listening on the 4723 successfully. The Android emulator is also running on the same machine. In order to have a quick glance the power of Appium, what should I do next?

I had a look the sample Python code (https://github.com/appium/appium/blob/master/sample-code/examples/python/android.py), but it seems the 'ApiDemos-debug.apk' has been removed at '/sample-code/apps/ApiDemos/bin/' few days ago, does anyone have a cope of it? If I got the apk, can I run the sample code directly or should I install something first on the Android emulator/device?

And, some dummy questions regarding to the code below:
1. What should I use for the abspath in Windows?
2. What are the attributes "app-package" and "app-activity" for exactly? Where can I get the value for those attributes?
==============
desired_caps = {}
desired_caps['device'] = 'Android'
desired_caps['browserName'] = ''
desired_caps['version'] = '4.2'
desired_caps['app'] = os.path.abspath('../../../sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk')
desired_caps['app-package'] = 'com.example.android.apis'
desired_caps['app-activity'] = 'ApiDemos'
==============

Sorry for a list of questions, thanks in advance for any input!

bootstrap online

unread,
Apr 7, 2013, 12:14:40 PM4/7/13
to appium-...@googlegroups.com
I don't think Appium currently works on Windows.


--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Eric Z

unread,
Apr 8, 2013, 2:38:17 AM4/8/13
to appium-...@googlegroups.com
Thanks for the quick reply. 

Has anyone tried Appium on Windows?

Dan Cuellar

unread,
Apr 8, 2013, 11:35:39 AM4/8/13
to appium-...@googlegroups.com
Writing the windows version of Appium.app is on my todo list, but I haven't tried as of yet

Jonathan Lipps

unread,
Apr 8, 2013, 2:08:23 PM4/8/13
to Eric Z, appium-...@googlegroups.com
Most of the setup (including getting the ApiDemos app installed in the right location) takes place in reset.sh, which obviously won't work on windows. However, if you can read a bit of bash, have a look there to see what's going on. Some of the setup is iOS-specific, and some of it is Android-specific. Basically, you'll need to clone the ApiDemos submodule and set it up for building/deploying (maybe "ant" still works on your box?)

In which case the abspath line might still work (or maybe you need to change to backward slashes), and the package and activity name can stay the same (they're ways of telling Android which app and activity you want to launch with Appium).

Let us know if you get anything working on Windows! I think it'd be the first.

I'm doubtful it will work, however, as we make liberal use of calling out to unixy binaries from within Appium. Getting it running on Windows will be a good but I'm guessing non-trivial project..

Jonathan

bootstrap online

unread,
Apr 8, 2013, 2:46:52 PM4/8/13
to Jonathan Lipps, Eric Z, appium-...@googlegroups.com
The Android code expects /tmp to exist and I don't think that works on Windows.

aarons...@gmail.com

unread,
Aug 1, 2013, 9:55:44 PM8/1/13
to appium-...@googlegroups.com, Jonathan Lipps, Eric Z
Is this still the case appium will not work with Windows 7?

Dan Cuellar

unread,
Aug 1, 2013, 10:11:04 PM8/1/13
to appium-...@googlegroups.com, Jonathan Lipps, Eric Z
Appium works on Win7. Download it here.

aarons...@gmail.com

unread,
Aug 4, 2013, 9:12:51 AM8/4/13
to appium-...@googlegroups.com, Jonathan Lipps, Eric Z
Thanks Dan,
 
I had it installed and was wondering why people were saying it did not work? That being said I have been having problems running scripts on this. I would like to see an example that might help. I am using Python with an android emulator from eclipse. Do I run scripts using the python shell like I would Selenium Webdriver? Is there a small example script with a small example apk.
 
Aaron Portier

Dan Cuellar

unread,
Aug 4, 2013, 6:57:31 PM8/4/13
to appium-...@googlegroups.com, Jonathan Lipps, Eric Z
Reply all
Reply to author
Forward
0 new messages