尝试了用 Robotium 框架,太多莫名其妙的 crash 了。
有做过类似工作的前辈吗?麻烦指条明路
http://v2.freep.cn/3tb_14050416271563e2512293.png
挺莫名其妙的,有时候上一次能跑,但是下一次就 crash 了
还有就是,经常执行一个方法以后,再执行下一个,就 crash 了。
Instrumentation crash 的日志:
05-04 15:07:09.260: E/ActivityThread(3219): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
05-04 15:07:13.450: W/System.err(3219): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1174)
05-04 15:08:13.220: W/dalvikvm(3687): method Landroid/test/InstrumentationTestRunner$StringResultPrinter;.print incorrectly overrides package-private method with same name in Ljunit/textui/ResultPrinter;
05-04 15:08:14.520: W/dalvikvm(3713): method Landroid/test/InstrumentationTestRunner$StringResultPrinter;.print incorrectly overrides package-private method with same name in Ljunit/textui/ResultPrinter;
05-04 15:08:15.530: W/System.err(3713): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
05-04 15:08:21.830: W/System.err(3713): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1174)
05-04 15:08:44.870: I/TestRunner(3713): at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
05-04 15:08:44.870: I/TestRunner(3713): at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
05-04 15:08:44.870: I/TestRunner(3713): at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
05-04 15:08:44.870: I/TestRunner(3713): at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
05-04 15:08:44.870: I/TestRunner(3713): at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1671)
05-04 15:08:47.670: E/ActivityThread(3713): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
05-04 15:08:53.260: W/System.err(3713): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1174)
05-04 15:11:09.840: W/dalvikvm(3931): method Landroid/test/InstrumentationTestRunner$StringResultPrinter;.print incorrectly overrides package-private method with same name in Ljunit/textui/ResultPrinter;
05-04 15:11:10.650: W/dalvikvm(3957): method Landroid/test/InstrumentationTestRunner$StringResultPrinter;.print incorrectly overrides package-private method with same name in Ljunit/textui/ResultPrinter;
05-04 15:11:11.670: W/System.err(3957): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
05-04 15:11:18.490: W/System.err(3957): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1174)
05-04 15:11:44.210: E/ActivityThread(3957): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
05-04 15:11:49.950: W/System.err(3957): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1174)
05-04 15:15:34.540: A/Environment(5134): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1010)
05-04 15:15:52.740: W/System.err(5242): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
05-04 15:16:02.530: W/System.err(5242): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1174)
05-04 15:16:56.810: W/dalvikvm(5647): method Landroid/test/InstrumentationTestRunner$StringResultPrinter;.print incorrectly overrides package-private method with same name in Ljunit/textui/ResultPrinter;
05-04 15:16:57.840: W/dalvikvm(5683): method Landroid/test/InstrumentationTestRunner$StringResultPrinter;.print incorrectly overrides package-private method with same name in Ljunit/textui/ResultPrinter;
05-04 15:16:57.990: W/ActivityManager(31826): Crash of app com.tvcloud running instrumentation ComponentInfo{com.cloud.test.test/android.test.InstrumentationTestRunner}