Execute Robotium test case using maven and android maven plugin

392 views
Skip to first unread message

Felix Thomas

unread,
May 4, 2013, 12:10:42 AM5/4/13
to maven-androi...@googlegroups.com
Hello,

   
     I am able to execute the test cases from my eclipse and it works fine. But when i try to do the same from a maven project i get run time error that my activity is not found. I have added the app jar as my dependencies etc. in my pom.xml . Still I am unable to understand why it says Activity not found during run time because in compile time its compiles perfectly. I am using the android maven plugin version 3.1.1 .

Just a Note , My MainActivity extends com.actionbarsherlock.app.SherlockActivity   Is it causing the issue? I am not sure.


Can anyone help , what could be the issue. I am using Robotium 4.1 ,Maven 3.0.5, JDK 1.6+. 

regards,
Felix T

Saurabh Banethia

unread,
Jun 5, 2013, 1:37:04 AM6/5/13
to maven-androi...@googlegroups.com
Hi Felix,

Download the code from "https://github.com/jayway/maven-android-plugin-samples" link and build your code according to the example of morseflash. Also keep the directory structure of your project similar to this example if you are using instrumentation. And do provide the "lifecycle-mapping" in your project.

Regards,
Saurabh
Reply all
Reply to author
Forward
0 new messages