kerasking / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

Add support to build and deploy uiautomator test #332

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi all,

http://developer.android.com/tools/testing/testing_ui.html#uianalaysis

uiautomator is not very hard to use. But it doesn't work with maven android 
plugin yet.
I think the support would be rather easy to integrate. I tried my best, but 
really I am far from being able to include support in the maven android plugin.

All you need to do is to 
For compile phase
* compile test sources using javac
* dex the classes
* jar the dex
* push the jar to /data/tmp

For test phase
* run some adb shell command to run the tests.

I think it would much less work that what you already did. And thanks for all 
that already.

Stéphane

Original issue reported on code.google.com by snico...@octo.com on 10 Dec 2012 at 4:48

GoogleCodeExporter commented 9 years ago
Hi Manfred, Hi all,

I am working on the automation of "cleaning, compiling, deploying to device and 
running" a ui automator project thanks to the android maven plugin.

I am getting closer to something. 

Is there any goal I can use to send arbitrary shell commands to a device via 
adb or I should create a new Mojo for that ?

Thanks in advance,
 Stéphane

Original comment by steff.ni...@gmail.com on 5 Mar 2013 at 7:48

GoogleCodeExporter commented 9 years ago
Hi steff ,All,

is android-maven-plugin is really works for uiautomator???? if it is possible i 
request you to post a pom content of uiautomator project here ,for better 
understandings , and please post commands list to execute a uiautomator project 
completely maven based project ,even i am a new baby to uiautomator tool please 
send me sample maven based project to this mail is 
anbarasan.jagadeesan@photoninfotech.net

Thanks in Advance 
 Anbarasan 

Original comment by anbarasa...@photoninfotech.net on 24 Jun 2013 at 7:34

GoogleCodeExporter commented 9 years ago
Hi Anbarasan,

you can find an example here :
https://github.com/stephanenicolas/Quality-Tools-for-Android
There might also be one in the samples of maven android plugin, I don't
really remember.

The one on QAT is working fine, mvn clean install -P uiautomator will run
the tests in the andorid-sample-uitest project.

St�phane

-- 
St�phane *NICOLAS*,
*OCTO Technology*
D�veloppeur & Consultant Android / Java
..........................................................
50, Avenue des Champs-Elys�es
75008 Paris
+33 (0)6.26.32.34.09
www.octo.com - blog.octo.com
www.usievents.com
...........................................................

Original comment by snico...@octo.com on 24 Jun 2013 at 9:51

GoogleCodeExporter commented 9 years ago
We are no longer using the issue tracking system on Google Code. Please refile 
this issue on https://github.com/jayway/maven-android-plugin/issues if you 
still have this problem with the latest release of the Android Maven Plugin

Original comment by mosa...@gmail.com on 19 May 2014 at 4:19