--
You received this message because you are subscribed to the Google Groups "Robotium Developers" group.
To post to this group, send email to robotium-...@googlegroups.com.
To unsubscribe from this group, send email to robotium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotium-developers?hl=en.
Probably you have not updated the AndroidManifest.xml of the example test project so that it points to your Activity.
/Renas
On Thu, Nov 3, 2011 at 8:43 AM, tommy <prasan...@gmail.com> wrote:
i got this error Test run failed process crashed !! while executing
the junit tests in robotium
i have given the correct package name and the activity name my log
shows
á á11-03 12:48:26.146: WARN/ActivityManager(53): Crash of app
com.example.notepad running instrumentation
ComponentInfo{com.example.notepad.test/
android.test.InstrumentationTestRunner}
My code is below
á ápackage com.example.notepad.test;
á áimport com.jayway.android.robotium.solo.Solo;
á á@SuppressWarnings("unchecked")
á ápublic class androidtest extends ActivityInstrumentationTestCase2
á á{
á áprivate static final String PackageID = "com.example.notepad";
á áprivate static final String activity =
"com.example.loginactivity";
á áprivate static Class<?> CLASS;
á ástatic{
á átry
á á{
á áCLASS = Class.forName(activity);
á á}
á ácatch(ClassNotFoundException e)
á á{
á áthrow new RuntimeException(e);
á á}
á á}
á ápublic androidtest()throws ClassNotFoundException
á á{
á ásuper(PackageID,CLASS);
á á}
á áprivate Solo solo;
á á@Override
á áprotected void setUp() throws Exception
á á{
á á á ásolo =new Solo(getInstrumentation(),getActivity());
á á}
á ápublic void test() throws Exception
á á{
á ásolo.pressMenuitem(0);
á á}
á á@Override
á ápublic void tearDown()throws Exception
á á{
á átry
á á{
á ásolo.finalize();
á á}
á ácatch
á á(Throwable e)
á á{
á áe.printStackTrace();
á á}
á ágetActivity().finish();
á ásuper.tearDown();
á á}
á á}
Mystart activity is
á á11-03 12:58:19.115: INFO/ActivityManager(53): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.example.notepad/com.example.loginactivity }
followedby
á á11-03 12:58:20.118 INFO/ActivityManager(53): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.example.notepad/com.login.mainactivity }
Please help myself completely blocked in this case
--
You received this message because you are subscribed to the Google Groups "Robotium Developers" group.
To post to this group, send email to robotium-...@googlegroups.com.
To unsubscribe from this group, send email to robotium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotium-developers?hl=en.
Hi,I am facing the same error issue "Test run failed: Instrumentation run failed due to 'Process crashed.'".I have entered the correct name of the target package .Please find the attached logcat for ur info. Could you please let me know the reason for process crashe. Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "Robotium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotium-develo...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotium-developers?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
Hi Sonia,Thanks for ur reply.but I have mentioned the Package ID and launcher activity correctly. Still received the Test Run Failed process crashed error.Please find attached logcat and project in Zip format. Please advice me on the same. Many Thanks!
To unsubscribe from this group and stop receiving emails from it, send an email to robotium-developers+unsub...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotium-developers?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
Hi Sonia,Thanks for ur reply.but I have mentioned the Package ID and launcher activity correctly. Still received the Test Run Failed process crashed error.Please find attached logcat and project in Zip format. Please advice me on the same. Many Thanks!
On Thursday, April 18, 2013 5:32:57 PM UTC+5:30, sonia wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to robotium-developers+unsub...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotium-developers?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Robotium Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotium-developers/irJ7nbFaecI/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to robotium-develo...@googlegroups.com.