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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.